OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <queue> | 9 #include <queue> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "content/browser/renderer_host/pepper_message_filter.h" | 15 #include "content/browser/renderer_host/pepper_message_filter.h" |
16 #include "content/public/browser/browser_child_process_host_delegate.h" | 16 #include "content/public/browser/browser_child_process_host_delegate.h" |
17 #include "content/public/browser/browser_child_process_host_iterator.h" | 17 #include "content/public/browser/browser_child_process_host_iterator.h" |
18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
19 | 19 |
20 class BrowserChildProcessHost; | 20 class BrowserChildProcessHostImpl; |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 struct PepperPluginInfo; | 23 struct PepperPluginInfo; |
24 class ResourceContext; | 24 class ResourceContext; |
25 } | 25 } |
26 | 26 |
27 namespace net { | 27 namespace net { |
28 class HostResolver; | 28 class HostResolver; |
29 } | 29 } |
30 | 30 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 std::queue<Client*> sent_requests_; | 115 std::queue<Client*> sent_requests_; |
116 | 116 |
117 // Path to the plugin library. | 117 // Path to the plugin library. |
118 FilePath plugin_path_; | 118 FilePath plugin_path_; |
119 | 119 |
120 const bool is_broker_; | 120 const bool is_broker_; |
121 | 121 |
122 // The unique id created for the process. | 122 // The unique id created for the process. |
123 int process_id_; | 123 int process_id_; |
124 | 124 |
125 scoped_ptr<BrowserChildProcessHost> process_; | 125 scoped_ptr<BrowserChildProcessHostImpl> process_; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 127 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
128 }; | 128 }; |
129 | 129 |
130 class PpapiPluginProcessHostIterator | 130 class PpapiPluginProcessHostIterator |
131 : public content::BrowserChildProcessHostTypeIterator< | 131 : public content::BrowserChildProcessHostTypeIterator< |
132 PpapiPluginProcessHost> { | 132 PpapiPluginProcessHost> { |
133 public: | 133 public: |
134 PpapiPluginProcessHostIterator() | 134 PpapiPluginProcessHostIterator() |
135 : content::BrowserChildProcessHostTypeIterator< | 135 : content::BrowserChildProcessHostTypeIterator< |
136 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_PLUGIN) {} | 136 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_PLUGIN) {} |
137 }; | 137 }; |
138 | 138 |
139 class PpapiBrokerProcessHostIterator | 139 class PpapiBrokerProcessHostIterator |
140 : public content::BrowserChildProcessHostTypeIterator< | 140 : public content::BrowserChildProcessHostTypeIterator< |
141 PpapiPluginProcessHost> { | 141 PpapiPluginProcessHost> { |
142 public: | 142 public: |
143 PpapiBrokerProcessHostIterator() | 143 PpapiBrokerProcessHostIterator() |
144 : content::BrowserChildProcessHostTypeIterator< | 144 : content::BrowserChildProcessHostTypeIterator< |
145 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} | 145 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} |
146 }; | 146 }; |
147 | 147 |
148 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 148 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
149 | 149 |
OLD | NEW |