blob: 9c26bf3e204047e7a952dfdc45caed6cc3b43664 [file] [log] [blame]
brettw@chromium.orgf947ed02012-06-12 07:35:26 +09001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef IPC_IPC_SENDER_H_
6#define IPC_IPC_SENDER_H_
7
8#include "ipc/ipc_export.h"
9
10namespace IPC {
11
12class Message;
13
14class IPC_EXPORT Sender {
15 public:
brettw@chromium.orgf947ed02012-06-12 07:35:26 +090016 // Sends the given IPC message. The implementor takes ownership of the
17 // given Message regardless of whether or not this method succeeds. This
18 // is done to make this method easier to use. Returns true on success and
19 // false otherwise.
20 virtual bool Send(Message* msg) = 0;
rsleevi@chromium.orgeae5e582012-07-11 09:07:54 +090021
22 protected:
23 virtual ~Sender() {}
brettw@chromium.orgf947ed02012-06-12 07:35:26 +090024};
25
26} // namespace IPC
27
28#endif // IPC_IPC_SENDER_H_