| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // Called when the channel is asynchronously opened to the plugin or on | 44 // Called when the channel is asynchronously opened to the plugin or on |
| 45 // error. On error, the parameters should be: | 45 // error. On error, the parameters should be: |
| 46 // base::kNullProcessHandle | 46 // base::kNullProcessHandle |
| 47 // IPC::ChannelHandle(), | 47 // IPC::ChannelHandle(), |
| 48 // 0 | 48 // 0 |
| 49 virtual void OnPpapiChannelOpened( | 49 virtual void OnPpapiChannelOpened( |
| 50 const IPC::ChannelHandle& channel_handle, | 50 const IPC::ChannelHandle& channel_handle, |
| 51 base::ProcessId plugin_pid, | 51 base::ProcessId plugin_pid, |
| 52 int plugin_child_id) = 0; | 52 int plugin_child_id) = 0; |
| 53 | 53 |
| 54 // Returns true if the current connection is off-the-record. | 54 // Returns true if the current connection is incognito. |
| 55 virtual bool OffTheRecord() = 0; | 55 virtual bool Incognito() = 0; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 virtual ~Client() {} | 58 virtual ~Client() {} |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 class PluginClient : public Client { | 61 class PluginClient : public Client { |
| 62 public: | 62 public: |
| 63 // Returns the resource context for the renderer requesting the channel. | 63 // Returns the resource context for the renderer requesting the channel. |
| 64 virtual ResourceContext* GetResourceContext() = 0; | 64 virtual ResourceContext* GetResourceContext() = 0; |
| 65 | 65 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 public: | 197 public: |
| 198 PpapiBrokerProcessHostIterator() | 198 PpapiBrokerProcessHostIterator() |
| 199 : BrowserChildProcessHostTypeIterator< | 199 : BrowserChildProcessHostTypeIterator< |
| 200 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 200 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace content | 203 } // namespace content |
| 204 | 204 |
| 205 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 205 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 206 | 206 |
| OLD | NEW |