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

Side by Side Diff: content/browser/ppapi_plugin_process_host.h

Issue 10378057: Broker out PPAPI handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
38 // Gets the information about the renderer that's requesting the channel. 38 // Gets the information about the renderer that's requesting the channel.
39 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, 39 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
40 int* renderer_id) = 0; 40 int* renderer_id) = 0;
41 41
42 // Called when the channel is asynchronously opened to the plugin or on 42 // Called when the channel is asynchronously opened to the plugin or on
43 // error. On error, the parameters should be: 43 // error. On error, the parameters should be:
44 // base::kNullProcessHandle 44 // base::kNullProcessHandle
45 // IPC::ChannelHandle(), 45 // IPC::ChannelHandle(),
46 // 0 46 // 0
47 virtual void OnPpapiChannelOpened( 47 virtual void OnPpapiChannelOpened(
48 base::ProcessHandle plugin_process_handle,
49 const IPC::ChannelHandle& channel_handle, 48 const IPC::ChannelHandle& channel_handle,
50 int plugin_child_id) = 0; 49 int plugin_child_id) = 0;
51 50
52 // Returns true if the current connection is off-the-record. 51 // Returns true if the current connection is off-the-record.
53 virtual bool OffTheRecord() = 0; 52 virtual bool OffTheRecord() = 0;
54 }; 53 };
55 54
56 class PluginClient : public Client { 55 class PluginClient : public Client {
57 public: 56 public:
58 // Returns the resource context for the renderer requesting the channel. 57 // Returns the resource context for the renderer requesting the channel.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 : public content::BrowserChildProcessHostTypeIterator< 142 : public content::BrowserChildProcessHostTypeIterator<
144 PpapiPluginProcessHost> { 143 PpapiPluginProcessHost> {
145 public: 144 public:
146 PpapiBrokerProcessHostIterator() 145 PpapiBrokerProcessHostIterator()
147 : content::BrowserChildProcessHostTypeIterator< 146 : content::BrowserChildProcessHostTypeIterator<
148 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} 147 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {}
149 }; 148 };
150 149
151 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 150 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
152 151
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