| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // channel is ready or if there's an error. | 112 // channel is ready or if there's an error. |
| 113 void OpenChannelToPlugin(Client* client); | 113 void OpenChannelToPlugin(Client* client); |
| 114 | 114 |
| 115 BrowserPpapiHostImpl* host_impl() { return host_impl_.get(); } | 115 BrowserPpapiHostImpl* host_impl() { return host_impl_.get(); } |
| 116 const BrowserChildProcessHostImpl* process() { return process_.get(); } | 116 const BrowserChildProcessHostImpl* process() { return process_.get(); } |
| 117 const base::FilePath& plugin_path() const { return plugin_path_; } | 117 const base::FilePath& plugin_path() const { return plugin_path_; } |
| 118 const base::FilePath& profile_data_directory() const { | 118 const base::FilePath& profile_data_directory() const { |
| 119 return profile_data_directory_; | 119 return profile_data_directory_; |
| 120 } | 120 } |
| 121 | 121 |
| 122 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | |
| 123 // Launch the zygote early in the browser startup. | |
| 124 static void EarlyZygoteLaunch(); | |
| 125 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | |
| 126 | |
| 127 // The client pointer must remain valid until its callback is issued. | 122 // The client pointer must remain valid until its callback is issued. |
| 128 | 123 |
| 129 private: | 124 private: |
| 130 class PluginNetworkObserver; | 125 class PluginNetworkObserver; |
| 131 | 126 |
| 132 // Constructors for plugin and broker process hosts, respectively. | 127 // Constructors for plugin and broker process hosts, respectively. |
| 133 // You must call Init before doing anything else. | 128 // You must call Init before doing anything else. |
| 134 PpapiPluginProcessHost(const PepperPluginInfo& info, | 129 PpapiPluginProcessHost(const PepperPluginInfo& info, |
| 135 const base::FilePath& profile_data_directory); | 130 const base::FilePath& profile_data_directory); |
| 136 PpapiPluginProcessHost(); | 131 PpapiPluginProcessHost(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 public: | 194 public: |
| 200 PpapiBrokerProcessHostIterator() | 195 PpapiBrokerProcessHostIterator() |
| 201 : BrowserChildProcessHostTypeIterator< | 196 : BrowserChildProcessHostTypeIterator< |
| 202 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 197 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
| 203 }; | 198 }; |
| 204 | 199 |
| 205 } // namespace content | 200 } // namespace content |
| 206 | 201 |
| 207 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 202 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 208 | 203 |
| OLD | NEW |