OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This class responds to requests from renderers for the list of plugins, and | 5 // This class responds to requests from renderers for the list of plugins, and |
6 // also a proxy object for plugin instances. | 6 // also a proxy object for plugin instances. |
7 | 7 |
8 #ifndef CHROME_BROWSER_PLUGIN_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_PLUGIN_SERVICE_H_ |
9 #define CHROME_BROWSER_PLUGIN_SERVICE_H_ | 9 #define CHROME_BROWSER_PLUGIN_SERVICE_H_ |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/hash_tables.h" | 14 #include "base/hash_tables.h" |
15 #include "base/lock.h" | 15 #include "base/lock.h" |
16 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
17 #include "base/singleton.h" | 17 #include "base/singleton.h" |
18 #include "base/waitable_event_watcher.h" | 18 #include "base/waitable_event_watcher.h" |
19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
20 #include "webkit/glue/webplugin.h" | 20 #include "webkit/glue/webplugininfo.h" |
21 | 21 |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 #include "base/registry.h" | 23 #include "base/registry.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace IPC { | 26 namespace IPC { |
27 class Message; | 27 class Message; |
28 } | 28 } |
29 | 29 |
| 30 class GURL; |
30 class MessageLoop; | 31 class MessageLoop; |
31 class PluginProcessHost; | 32 class PluginProcessHost; |
32 class URLRequestContext; | 33 class URLRequestContext; |
33 class ResourceDispatcherHost; | 34 class ResourceDispatcherHost; |
34 class ResourceMessageFilter; | 35 class ResourceMessageFilter; |
35 | 36 |
36 // This can be called on the main thread and IO thread. However it must | 37 // This can be called on the main thread and IO thread. However it must |
37 // be created on the main thread. | 38 // be created on the main thread. |
38 class PluginService : base::WaitableEventWatcher::Delegate { | 39 class PluginService : base::WaitableEventWatcher::Delegate { |
39 public: | 40 public: |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 scoped_ptr<base::WaitableEvent> hkcu_event_; | 145 scoped_ptr<base::WaitableEvent> hkcu_event_; |
145 scoped_ptr<base::WaitableEvent> hklm_event_; | 146 scoped_ptr<base::WaitableEvent> hklm_event_; |
146 base::WaitableEventWatcher hkcu_watcher_; | 147 base::WaitableEventWatcher hkcu_watcher_; |
147 base::WaitableEventWatcher hklm_watcher_; | 148 base::WaitableEventWatcher hklm_watcher_; |
148 #endif | 149 #endif |
149 | 150 |
150 DISALLOW_COPY_AND_ASSIGN(PluginService); | 151 DISALLOW_COPY_AND_ASSIGN(PluginService); |
151 }; | 152 }; |
152 | 153 |
153 #endif // CHROME_BROWSER_PLUGIN_SERVICE_H_ | 154 #endif // CHROME_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |