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