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> |
11 #include <queue> | 11 #include <queue> |
| 12 #include <string> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
17 #include "base/process/process.h" | 18 #include "base/process/process.h" |
18 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
19 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" | 20 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" |
20 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 21 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
21 #include "content/public/browser/browser_child_process_host_delegate.h" | 22 #include "content/public/browser/browser_child_process_host_delegate.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 145 |
145 void OnProcessCrashed(int exit_code) override; | 146 void OnProcessCrashed(int exit_code) override; |
146 bool OnMessageReceived(const IPC::Message& msg) override; | 147 bool OnMessageReceived(const IPC::Message& msg) override; |
147 void OnChannelConnected(int32_t peer_pid) override; | 148 void OnChannelConnected(int32_t peer_pid) override; |
148 void OnChannelError() override; | 149 void OnChannelError() override; |
149 | 150 |
150 void CancelRequests(); | 151 void CancelRequests(); |
151 | 152 |
152 // IPC message handlers. | 153 // IPC message handlers. |
153 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); | 154 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); |
| 155 void OnFieldTrialActivated(const std::string& trial_name); |
154 | 156 |
155 // Handles most requests from the plugin. May be NULL. | 157 // Handles most requests from the plugin. May be NULL. |
156 scoped_refptr<PepperMessageFilter> filter_; | 158 scoped_refptr<PepperMessageFilter> filter_; |
157 | 159 |
158 ppapi::PpapiPermissions permissions_; | 160 ppapi::PpapiPermissions permissions_; |
159 std::unique_ptr<BrowserPpapiHostImpl> host_impl_; | 161 std::unique_ptr<BrowserPpapiHostImpl> host_impl_; |
160 | 162 |
161 // Observes network changes. May be NULL. | 163 // Observes network changes. May be NULL. |
162 std::unique_ptr<PluginNetworkObserver> network_observer_; | 164 std::unique_ptr<PluginNetworkObserver> network_observer_; |
163 | 165 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 public: | 199 public: |
198 PpapiBrokerProcessHostIterator() | 200 PpapiBrokerProcessHostIterator() |
199 : BrowserChildProcessHostTypeIterator< | 201 : BrowserChildProcessHostTypeIterator< |
200 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 202 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
201 }; | 203 }; |
202 | 204 |
203 } // namespace content | 205 } // namespace content |
204 | 206 |
205 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 207 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
206 | 208 |
OLD | NEW |