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

Side by Side Diff: ppapi/proxy/plugin_dispatcher.h

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « ppapi/proxy/host_dispatcher.cc ('k') | ppapi/proxy/plugin_dispatcher.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 PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_
6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 PP_LogLevel level, 119 PP_LogLevel level,
120 const std::string& source, 120 const std::string& source,
121 const std::string& value); 121 const std::string& value);
122 122
123 const void* GetPluginInterface(const std::string& interface_name); 123 const void* GetPluginInterface(const std::string& interface_name);
124 124
125 // You must call this function before anything else. Returns true on success. 125 // You must call this function before anything else. Returns true on success.
126 // The delegate pointer must outlive this class, ownership is not 126 // The delegate pointer must outlive this class, ownership is not
127 // transferred. 127 // transferred.
128 bool InitPluginWithChannel(PluginDelegate* delegate, 128 bool InitPluginWithChannel(PluginDelegate* delegate,
129 base::ProcessId peer_pid,
129 const IPC::ChannelHandle& channel_handle, 130 const IPC::ChannelHandle& channel_handle,
130 bool is_client); 131 bool is_client);
131 132
132 // Dispatcher overrides. 133 // Dispatcher overrides.
133 virtual bool IsPlugin() const; 134 virtual bool IsPlugin() const;
134 virtual bool Send(IPC::Message* msg); 135 virtual bool Send(IPC::Message* msg);
135 136
136 // IPC::Listener implementation. 137 // IPC::Listener implementation.
137 virtual bool OnMessageReceived(const IPC::Message& msg); 138 virtual bool OnMessageReceived(const IPC::Message& msg);
138 virtual void OnChannelError(); 139 virtual void OnChannelError();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // incognito mode. 207 // incognito mode.
207 bool incognito_; 208 bool incognito_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); 210 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher);
210 }; 211 };
211 212
212 } // namespace proxy 213 } // namespace proxy
213 } // namespace ppapi 214 } // namespace ppapi
214 215
215 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 216 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/host_dispatcher.cc ('k') | ppapi/proxy/plugin_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698