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

Side by Side Diff: ipc/ipc_channel.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy 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
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_CHANNEL_H_ 5 #ifndef IPC_IPC_CHANNEL_H_
6 #define IPC_IPC_CHANNEL_H_ 6 #define IPC_IPC_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // currently used by automation and service processes. 43 // currently used by automation and service processes.
44 44
45 class IPC_EXPORT Channel : public Sender { 45 class IPC_EXPORT Channel : public Sender {
46 // Security tests need access to the pipe handle. 46 // Security tests need access to the pipe handle.
47 friend class ChannelTest; 47 friend class ChannelTest;
48 48
49 public: 49 public:
50 // IPC::Listener used to be IPC::Channel::Listener which prevented forward 50 // IPC::Listener used to be IPC::Channel::Listener which prevented forward
51 // declarations. To keep existing code compiling, we provide this 51 // declarations. To keep existing code compiling, we provide this
52 // backwards-compatible definition. New code should use IPC::Listener. 52 // backwards-compatible definition. New code should use IPC::Listener.
53 // TODO(brettw) converto users of this and delete. 53 // TODO(brettw) convert users of this and delete.
54 typedef IPC::Listener Listener; 54 typedef IPC::Listener Listener;
55 55
56 // Flags to test modes 56 // Flags to test modes
57 enum ModeFlags { 57 enum ModeFlags {
58 MODE_NO_FLAG = 0x0, 58 MODE_NO_FLAG = 0x0,
59 MODE_SERVER_FLAG = 0x1, 59 MODE_SERVER_FLAG = 0x1,
60 MODE_CLIENT_FLAG = 0x2, 60 MODE_CLIENT_FLAG = 0x2,
61 MODE_NAMED_FLAG = 0x4, 61 MODE_NAMED_FLAG = 0x4,
62 #if defined(OS_POSIX) 62 #if defined(OS_POSIX)
63 MODE_OPEN_ACCESS_FLAG = 0x8, // Don't restrict access based on client UID. 63 MODE_OPEN_ACCESS_FLAG = 0x8, // Don't restrict access based on client UID.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 private: 211 private:
212 // PIMPL to which all channel calls are delegated. 212 // PIMPL to which all channel calls are delegated.
213 class ChannelImpl; 213 class ChannelImpl;
214 ChannelImpl *channel_impl_; 214 ChannelImpl *channel_impl_;
215 }; 215 };
216 216
217 } // namespace IPC 217 } // namespace IPC
218 218
219 #endif // IPC_IPC_CHANNEL_H_ 219 #endif // IPC_IPC_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_parent_context_provider.h ('k') | media/audio/audio_input_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698