OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); | 110 virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); |
111 | 111 |
112 // NotificationObserver implementation | 112 // NotificationObserver implementation |
113 virtual void Observe(NotificationType type, const NotificationSource& source, | 113 virtual void Observe(NotificationType type, const NotificationSource& source, |
114 const NotificationDetails& details); | 114 const NotificationDetails& details); |
115 | 115 |
116 // Returns true if the given plugin is allowed to be used by a page with | 116 // Returns true if the given plugin is allowed to be used by a page with |
117 // the given URL. | 117 // the given URL. |
118 bool PluginAllowedForURL(const FilePath& plugin_path, const GURL& url); | 118 bool PluginAllowedForURL(const FilePath& plugin_path, const GURL& url); |
119 | 119 |
| 120 void RegisterPepperPlugins(); |
| 121 |
120 // mapping between plugin path and PluginProcessHost | 122 // mapping between plugin path and PluginProcessHost |
121 typedef base::hash_map<FilePath, PluginProcessHost*> PluginMap; | 123 typedef base::hash_map<FilePath, PluginProcessHost*> PluginMap; |
122 PluginMap plugin_hosts_; | 124 PluginMap plugin_hosts_; |
123 | 125 |
124 // The main thread's message loop. | 126 // The main thread's message loop. |
125 MessageLoop* main_message_loop_; | 127 MessageLoop* main_message_loop_; |
126 | 128 |
127 // The IO thread's resource dispatcher host. | 129 // The IO thread's resource dispatcher host. |
128 ResourceDispatcherHost* resource_dispatcher_host_; | 130 ResourceDispatcherHost* resource_dispatcher_host_; |
129 | 131 |
(...skipping 23 matching lines...) Expand all Loading... |
153 // Set to true if chrome plugins are enabled. Defaults to true. | 155 // Set to true if chrome plugins are enabled. Defaults to true. |
154 static bool enable_chrome_plugins_; | 156 static bool enable_chrome_plugins_; |
155 | 157 |
156 // Set to true iff the internal pdf plugin is enabled by default. | 158 // Set to true iff the internal pdf plugin is enabled by default. |
157 static bool enable_internal_pdf_; | 159 static bool enable_internal_pdf_; |
158 | 160 |
159 DISALLOW_COPY_AND_ASSIGN(PluginService); | 161 DISALLOW_COPY_AND_ASSIGN(PluginService); |
160 }; | 162 }; |
161 | 163 |
162 #endif // CHROME_BROWSER_PLUGIN_SERVICE_H_ | 164 #endif // CHROME_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |