Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Side by Side Diff: ipc/ipc_sender.h

Issue 10694111: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android & Win compiles Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_listener.h ('k') | ppapi/proxy/var_serialization_rules.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_IPC_SENDER_H_ 5 #ifndef IPC_IPC_SENDER_H_
6 #define IPC_IPC_SENDER_H_ 6 #define IPC_IPC_SENDER_H_
7 7
8 #include "ipc/ipc_export.h" 8 #include "ipc/ipc_export.h"
9 9
10 namespace IPC { 10 namespace IPC {
11 11
12 class Message; 12 class Message;
13 13
14 class IPC_EXPORT Sender { 14 class IPC_EXPORT Sender {
15 public: 15 public:
16 virtual ~Sender() {}
17
18 // Sends the given IPC message. The implementor takes ownership of the 16 // Sends the given IPC message. The implementor takes ownership of the
19 // given Message regardless of whether or not this method succeeds. This 17 // given Message regardless of whether or not this method succeeds. This
20 // is done to make this method easier to use. Returns true on success and 18 // is done to make this method easier to use. Returns true on success and
21 // false otherwise. 19 // false otherwise.
22 virtual bool Send(Message* msg) = 0; 20 virtual bool Send(Message* msg) = 0;
21
22 protected:
23 virtual ~Sender() {}
23 }; 24 };
24 25
25 } // namespace IPC 26 } // namespace IPC
26 27
27 #endif // IPC_IPC_SENDER_H_ 28 #endif // IPC_IPC_SENDER_H_
OLDNEW
« no previous file with comments | « ipc/ipc_listener.h ('k') | ppapi/proxy/var_serialization_rules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698