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_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #include <list> | 11 #include <list> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/browser_child_process_host_delegate.h" | 20 #include "content/public/browser/browser_child_process_host_delegate.h" |
21 #include "content/public/browser/browser_child_process_host_iterator.h" | 21 #include "content/public/browser/browser_child_process_host_iterator.h" |
22 #include "ipc/ipc_channel_proxy.h" | 22 #include "ipc/ipc_channel_proxy.h" |
23 #include "webkit/plugins/webplugininfo.h" | 23 #include "webkit/plugins/webplugininfo.h" |
24 #include "ui/gfx/native_widget_types.h" | 24 #include "ui/gfx/native_widget_types.h" |
25 | 25 |
26 class BrowserChildProcessHost; | 26 class BrowserChildProcessHostImpl; |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class ResourceContext; | 29 class ResourceContext; |
30 } | 30 } |
31 | 31 |
32 namespace gfx { | 32 namespace gfx { |
33 class Rect; | 33 class Rect; |
34 } | 34 } |
35 | 35 |
36 namespace IPC { | 36 namespace IPC { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Tracks plugin windows currently visible. | 171 // Tracks plugin windows currently visible. |
172 std::set<uint32> plugin_visible_windows_set_; | 172 std::set<uint32> plugin_visible_windows_set_; |
173 // Tracks full screen windows currently visible. | 173 // Tracks full screen windows currently visible. |
174 std::set<uint32> plugin_fullscreen_windows_set_; | 174 std::set<uint32> plugin_fullscreen_windows_set_; |
175 // Tracks modal windows currently visible. | 175 // Tracks modal windows currently visible. |
176 std::set<uint32> plugin_modal_windows_set_; | 176 std::set<uint32> plugin_modal_windows_set_; |
177 // Tracks the current visibility of the cursor. | 177 // Tracks the current visibility of the cursor. |
178 bool plugin_cursor_visible_; | 178 bool plugin_cursor_visible_; |
179 #endif | 179 #endif |
180 | 180 |
181 scoped_ptr<BrowserChildProcessHost> process_; | 181 scoped_ptr<BrowserChildProcessHostImpl> process_; |
182 | 182 |
183 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 183 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
184 }; | 184 }; |
185 | 185 |
186 class PluginProcessHostIterator | 186 class PluginProcessHostIterator |
187 : public content::BrowserChildProcessHostTypeIterator<PluginProcessHost> { | 187 : public content::BrowserChildProcessHostTypeIterator<PluginProcessHost> { |
188 public: | 188 public: |
189 PluginProcessHostIterator() | 189 PluginProcessHostIterator() |
190 : content::BrowserChildProcessHostTypeIterator<PluginProcessHost>( | 190 : content::BrowserChildProcessHostTypeIterator<PluginProcessHost>( |
191 content::PROCESS_TYPE_PLUGIN) {} | 191 content::PROCESS_TYPE_PLUGIN) {} |
192 }; | 192 }; |
193 | 193 |
194 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 194 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |