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

Side by Side Diff: content/browser/ppapi_plugin_process_host.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 | « content/browser/plugin_service_impl.cc ('k') | content/browser/ppapi_plugin_process_host.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 CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <queue> 9 #include <queue>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/process.h"
15 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" 16 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
16 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 17 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
17 #include "content/public/browser/browser_child_process_host_delegate.h" 18 #include "content/public/browser/browser_child_process_host_delegate.h"
18 #include "content/public/browser/browser_child_process_host_iterator.h" 19 #include "content/public/browser/browser_child_process_host_iterator.h"
19 #include "ipc/ipc_sender.h" 20 #include "ipc/ipc_sender.h"
20 #include "ppapi/shared_impl/ppapi_permissions.h" 21 #include "ppapi/shared_impl/ppapi_permissions.h"
21 22
22 namespace net { 23 namespace net {
23 class HostResolver; 24 class HostResolver;
24 } 25 }
(...skipping 14 matching lines...) Expand all
39 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, 40 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
40 int* renderer_id) = 0; 41 int* renderer_id) = 0;
41 42
42 // Called when the channel is asynchronously opened to the plugin or on 43 // Called when the channel is asynchronously opened to the plugin or on
43 // error. On error, the parameters should be: 44 // error. On error, the parameters should be:
44 // base::kNullProcessHandle 45 // base::kNullProcessHandle
45 // IPC::ChannelHandle(), 46 // IPC::ChannelHandle(),
46 // 0 47 // 0
47 virtual void OnPpapiChannelOpened( 48 virtual void OnPpapiChannelOpened(
48 const IPC::ChannelHandle& channel_handle, 49 const IPC::ChannelHandle& channel_handle,
50 base::ProcessId plugin_pid,
49 int plugin_child_id) = 0; 51 int plugin_child_id) = 0;
50 52
51 // Returns true if the current connection is off-the-record. 53 // Returns true if the current connection is off-the-record.
52 virtual bool OffTheRecord() = 0; 54 virtual bool OffTheRecord() = 0;
53 55
54 protected: 56 protected:
55 virtual ~Client() {} 57 virtual ~Client() {}
56 }; 58 };
57 59
58 class PluginClient : public Client { 60 class PluginClient : public Client {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 public: 181 public:
180 PpapiBrokerProcessHostIterator() 182 PpapiBrokerProcessHostIterator()
181 : BrowserChildProcessHostTypeIterator< 183 : BrowserChildProcessHostTypeIterator<
182 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} 184 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {}
183 }; 185 };
184 186
185 } // namespace content 187 } // namespace content
186 188
187 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 189 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
188 190
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698