OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |