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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <queue> | 10 #include <queue> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return profile_data_directory_; | 92 return profile_data_directory_; |
93 } | 93 } |
94 | 94 |
95 // The client pointer must remain valid until its callback is issued. | 95 // The client pointer must remain valid until its callback is issued. |
96 | 96 |
97 private: | 97 private: |
98 class PluginNetworkObserver; | 98 class PluginNetworkObserver; |
99 | 99 |
100 // Constructors for plugin and broker process hosts, respectively. | 100 // Constructors for plugin and broker process hosts, respectively. |
101 // You must call Init before doing anything else. | 101 // You must call Init before doing anything else. |
102 PpapiPluginProcessHost(const std::string& plugin_name, | 102 PpapiPluginProcessHost(const content::PepperPluginInfo& info, |
103 const FilePath& profile_data_directory, | 103 const FilePath& profile_data_directory, |
104 net::HostResolver* host_resolver); | 104 net::HostResolver* host_resolver); |
105 PpapiPluginProcessHost(); | 105 PpapiPluginProcessHost(); |
106 | 106 |
107 // Actually launches the process with the given plugin info. Returns true | 107 // Actually launches the process with the given plugin info. Returns true |
108 // on success (the process was spawned). | 108 // on success (the process was spawned). |
109 bool Init(const content::PepperPluginInfo& info); | 109 bool Init(const content::PepperPluginInfo& info); |
110 | 110 |
111 void RequestPluginChannel(Client* client); | 111 void RequestPluginChannel(Client* client); |
112 | 112 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 : public content::BrowserChildProcessHostTypeIterator< | 164 : public content::BrowserChildProcessHostTypeIterator< |
165 PpapiPluginProcessHost> { | 165 PpapiPluginProcessHost> { |
166 public: | 166 public: |
167 PpapiBrokerProcessHostIterator() | 167 PpapiBrokerProcessHostIterator() |
168 : content::BrowserChildProcessHostTypeIterator< | 168 : content::BrowserChildProcessHostTypeIterator< |
169 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} | 169 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} |
170 }; | 170 }; |
171 | 171 |
172 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 172 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
173 | 173 |
OLD | NEW |