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

Side by Side Diff: ipc/ipc_channel_proxy.h

Issue 310293002: Make IPC::Channel polymorphic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another attempt to fix build breakage Created 6 years, 6 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_channel_posix_unittest.cc ('k') | ipc/ipc_channel_proxy.cc » ('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_CHANNEL_PROXY_H_ 5 #ifndef IPC_IPC_CHANNEL_PROXY_H_
6 #define IPC_IPC_CHANNEL_PROXY_H_ 6 #define IPC_IPC_CHANNEL_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // then some messages might be missed since the filter is added internally on 103 // then some messages might be missed since the filter is added internally on
104 // the IO thread. 104 // the IO thread.
105 void AddFilter(MessageFilter* filter); 105 void AddFilter(MessageFilter* filter);
106 void RemoveFilter(MessageFilter* filter); 106 void RemoveFilter(MessageFilter* filter);
107 107
108 // Called to clear the pointer to the IPC task runner when it's going away. 108 // Called to clear the pointer to the IPC task runner when it's going away.
109 void ClearIPCTaskRunner(); 109 void ClearIPCTaskRunner();
110 110
111 // Get the process ID for the connected peer. 111 // Get the process ID for the connected peer.
112 // Returns base::kNullProcessId if the peer is not connected yet. 112 // Returns base::kNullProcessId if the peer is not connected yet.
113 base::ProcessId peer_pid() const { return context_->peer_pid_; } 113 base::ProcessId GetPeerPID() const { return context_->peer_pid_; }
114 114
115 #if defined(OS_POSIX) && !defined(OS_NACL) 115 #if defined(OS_POSIX) && !defined(OS_NACL)
116 // Calls through to the underlying channel's methods. 116 // Calls through to the underlying channel's methods.
117 int GetClientFileDescriptor(); 117 int GetClientFileDescriptor();
118 int TakeClientFileDescriptor(); 118 int TakeClientFileDescriptor();
119 bool GetPeerEuid(uid_t* peer_euid) const; 119 bool GetPeerEuid(uid_t* peer_euid) const;
120 #endif // defined(OS_POSIX) 120 #endif // defined(OS_POSIX)
121 121
122 protected: 122 protected:
123 class Context; 123 class Context;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // that involves this data. 225 // that involves this data.
226 scoped_refptr<Context> context_; 226 scoped_refptr<Context> context_;
227 227
228 // Whether the channel has been initialized. 228 // Whether the channel has been initialized.
229 bool did_init_; 229 bool did_init_;
230 }; 230 };
231 231
232 } // namespace IPC 232 } // namespace IPC
233 233
234 #endif // IPC_IPC_CHANNEL_PROXY_H_ 234 #endif // IPC_IPC_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698