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 // 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 CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "googleurl/src/gurl.h" | 26 #include "googleurl/src/gurl.h" |
27 #include "ipc/ipc_channel_handle.h" | 27 #include "ipc/ipc_channel_handle.h" |
28 #include "webkit/plugins/npapi/webplugininfo.h" | 28 #include "webkit/plugins/npapi/webplugininfo.h" |
29 | 29 |
30 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
31 #include "base/memory/scoped_ptr.h" | 31 #include "base/memory/scoped_ptr.h" |
32 #include "base/win/registry.h" | 32 #include "base/win/registry.h" |
33 #endif | 33 #endif |
34 | 34 |
35 #if defined(OS_LINUX) | 35 #if defined(OS_LINUX) |
36 #include "content/common/file_path_watcher/file_path_watcher.h" | 36 #include "base/files/file_path_watcher.h" |
37 #endif | 37 #endif |
38 | 38 |
39 #if defined(OS_CHROMEOS) | 39 #if defined(OS_CHROMEOS) |
40 namespace chromeos { | 40 namespace chromeos { |
41 class PluginSelectionPolicy; | 41 class PluginSelectionPolicy; |
42 } | 42 } |
43 #endif | 43 #endif |
44 | 44 |
45 namespace IPC { | 45 namespace IPC { |
46 class Message; | 46 class Message; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 // Helper so we can finish opening the channel after looking up the | 167 // Helper so we can finish opening the channel after looking up the |
168 // plugin. | 168 // plugin. |
169 void FinishOpenChannelToPlugin( | 169 void FinishOpenChannelToPlugin( |
170 const FilePath& plugin_path, | 170 const FilePath& plugin_path, |
171 PluginProcessHost::Client* client); | 171 PluginProcessHost::Client* client); |
172 | 172 |
173 #if defined(OS_LINUX) | 173 #if defined(OS_LINUX) |
174 // Registers a new FilePathWatcher for a given path. | 174 // Registers a new FilePathWatcher for a given path. |
175 static void RegisterFilePathWatcher( | 175 static void RegisterFilePathWatcher( |
176 FilePathWatcher* watcher, | 176 base::files::FilePathWatcher* watcher, |
177 const FilePath& path, | 177 const FilePath& path, |
178 FilePathWatcher::Delegate* delegate); | 178 base::files::FilePathWatcher::Delegate* delegate); |
179 #endif | 179 #endif |
180 | 180 |
181 // The main thread's message loop. | 181 // The main thread's message loop. |
182 MessageLoop* main_message_loop_; | 182 MessageLoop* main_message_loop_; |
183 | 183 |
184 // The IO thread's resource dispatcher host. | 184 // The IO thread's resource dispatcher host. |
185 ResourceDispatcherHost* resource_dispatcher_host_; | 185 ResourceDispatcherHost* resource_dispatcher_host_; |
186 | 186 |
187 // The browser's UI locale. | 187 // The browser's UI locale. |
188 const std::string ui_locale_; | 188 const std::string ui_locale_; |
(...skipping 13 matching lines...) Expand all Loading... |
202 // Registry keys for getting notifications when new plugins are installed. | 202 // Registry keys for getting notifications when new plugins are installed. |
203 base::win::RegKey hkcu_key_; | 203 base::win::RegKey hkcu_key_; |
204 base::win::RegKey hklm_key_; | 204 base::win::RegKey hklm_key_; |
205 scoped_ptr<base::WaitableEvent> hkcu_event_; | 205 scoped_ptr<base::WaitableEvent> hkcu_event_; |
206 scoped_ptr<base::WaitableEvent> hklm_event_; | 206 scoped_ptr<base::WaitableEvent> hklm_event_; |
207 base::WaitableEventWatcher hkcu_watcher_; | 207 base::WaitableEventWatcher hkcu_watcher_; |
208 base::WaitableEventWatcher hklm_watcher_; | 208 base::WaitableEventWatcher hklm_watcher_; |
209 #endif | 209 #endif |
210 | 210 |
211 #if defined(OS_LINUX) | 211 #if defined(OS_LINUX) |
212 ScopedVector<FilePathWatcher> file_watchers_; | 212 ScopedVector<base::files::FilePathWatcher> file_watchers_; |
213 scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_; | 213 scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_; |
214 #endif | 214 #endif |
215 | 215 |
216 std::vector<PepperPluginInfo> ppapi_plugins_; | 216 std::vector<PepperPluginInfo> ppapi_plugins_; |
217 | 217 |
218 std::vector<OverriddenPlugin> overridden_plugins_; | 218 std::vector<OverriddenPlugin> overridden_plugins_; |
219 base::Lock overridden_plugins_lock_; | 219 base::Lock overridden_plugins_lock_; |
220 | 220 |
221 DISALLOW_COPY_AND_ASSIGN(PluginService); | 221 DISALLOW_COPY_AND_ASSIGN(PluginService); |
222 }; | 222 }; |
223 | 223 |
224 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); | 224 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); |
225 | 225 |
226 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 226 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |