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

Side by Side Diff: ipc/ipc_channel_proxy.h

Issue 10174048: PPAPI/NaCl: Speculative implementation for ipc_channel_nacl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge, fix link errors Created 8 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_nacl.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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 outgoing_message_filter_ = filter; 172 outgoing_message_filter_ = filter;
173 } 173 }
174 174
175 // Called to clear the pointer to the IPC message loop when it's going away. 175 // Called to clear the pointer to the IPC message loop when it's going away.
176 void ClearIPCMessageLoop(); 176 void ClearIPCMessageLoop();
177 177
178 // Get the process ID for the connected peer. 178 // Get the process ID for the connected peer.
179 // Returns base::kNullProcessId if the peer is not connected yet. 179 // Returns base::kNullProcessId if the peer is not connected yet.
180 base::ProcessId peer_pid() const { return context_->peer_pid_; } 180 base::ProcessId peer_pid() const { return context_->peer_pid_; }
181 181
182 #if defined(OS_POSIX) 182 #if defined(OS_POSIX) && !defined(OS_NACL)
183 // Calls through to the underlying channel's methods. 183 // Calls through to the underlying channel's methods.
184 int GetClientFileDescriptor(); 184 int GetClientFileDescriptor();
185 int TakeClientFileDescriptor(); 185 int TakeClientFileDescriptor();
186 bool GetClientEuid(uid_t* client_euid) const; 186 bool GetClientEuid(uid_t* client_euid) const;
187 #endif // defined(OS_POSIX) 187 #endif // defined(OS_POSIX)
188 188
189 protected: 189 protected:
190 class Context; 190 class Context;
191 // A subclass uses this constructor if it needs to add more information 191 // A subclass uses this constructor if it needs to add more information
192 // to the internal state. 192 // to the internal state.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 OutgoingMessageFilter* outgoing_message_filter_; 287 OutgoingMessageFilter* outgoing_message_filter_;
288 288
289 // Whether the channel has been initialized. 289 // Whether the channel has been initialized.
290 bool did_init_; 290 bool did_init_;
291 }; 291 };
292 292
293 } // namespace IPC 293 } // namespace IPC
294 294
295 #endif // IPC_IPC_CHANNEL_PROXY_H_ 295 #endif // IPC_IPC_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_nacl.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698