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

Side by Side Diff: chrome/common/ipc_channel_proxy.h

Issue 79020: linux (and some posix): multiprocess plugins compiling. (Closed)
Patch Set: rebased Created 11 years, 8 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
« no previous file with comments | « chrome/common/ipc_channel_posix.cc ('k') | chrome/common/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_IPC_CHANNEL_PROXY_H__ 5 #ifndef CHROME_COMMON_IPC_CHANNEL_PROXY_H__
6 #define CHROME_COMMON_IPC_CHANNEL_PROXY_H__ 6 #define CHROME_COMMON_IPC_CHANNEL_PROXY_H__
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/lock.h" 9 #include "base/lock.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Ordinarily, messages sent to the ChannelProxy are routed to the matching 110 // Ordinarily, messages sent to the ChannelProxy are routed to the matching
111 // listener on the worker thread. This API allows code to intercept messages 111 // listener on the worker thread. This API allows code to intercept messages
112 // before they are sent to the worker thread. 112 // before they are sent to the worker thread.
113 void AddFilter(MessageFilter* filter); 113 void AddFilter(MessageFilter* filter);
114 void RemoveFilter(MessageFilter* filter); 114 void RemoveFilter(MessageFilter* filter);
115 115
116 #if defined(OS_POSIX) 116 #if defined(OS_POSIX)
117 // Calls through to the underlying channel's methods. 117 // Calls through to the underlying channel's methods.
118 // TODO(playmobil): For now this is only implemented in the case of 118 // TODO(playmobil): For now this is only implemented in the case of
119 // create_pipe_now = true, we need to figure this out for the latter case. 119 // create_pipe_now = true, we need to figure this out for the latter case.
120 void GetClientFileDescriptorMapping(int *src_fd, int *dest_fd); 120 void GetClientFileDescriptorMapping(int *src_fd, int *dest_fd) const;
121 void OnClientConnected(); 121 void OnClientConnected();
122 #endif // defined(OS_POSIX) 122 #endif // defined(OS_POSIX)
123 123
124 protected: 124 protected:
125 class Context; 125 class Context;
126 // A subclass uses this constructor if it needs to add more information 126 // A subclass uses this constructor if it needs to add more information
127 // to the internal state. If create_pipe_now is true, the pipe is created 127 // to the internal state. If create_pipe_now is true, the pipe is created
128 // immediately. Otherwise it's created on the IO thread. 128 // immediately. Otherwise it's created on the IO thread.
129 ChannelProxy(const std::wstring& channel_id, Channel::Mode mode, 129 ChannelProxy(const std::wstring& channel_id, Channel::Mode mode,
130 MessageLoop* ipc_thread_loop, Context* context, 130 MessageLoop* ipc_thread_loop, Context* context,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // By maintaining this indirection (ref-counted) to our internal state, we 198 // By maintaining this indirection (ref-counted) to our internal state, we
199 // can safely be destroyed while the background thread continues to do stuff 199 // can safely be destroyed while the background thread continues to do stuff
200 // that involves this data. 200 // that involves this data.
201 scoped_refptr<Context> context_; 201 scoped_refptr<Context> context_;
202 }; 202 };
203 203
204 } // namespace IPC 204 } // namespace IPC
205 205
206 #endif // CHROME_COMMON_IPC_CHANNEL_PROXY_H__ 206 #endif // CHROME_COMMON_IPC_CHANNEL_PROXY_H__
OLDNEW
« no previous file with comments | « chrome/common/ipc_channel_posix.cc ('k') | chrome/common/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698