Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1290)

Side by Side Diff: content/browser/plugin_service.h

Issue 6793020: Move FilePathWatcher to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move OWNERS file and rebase to pick up latest changes Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Helper so we can finish opening the channel after looking up the 156 // Helper so we can finish opening the channel after looking up the
157 // plugin. 157 // plugin.
158 void FinishOpenChannelToPlugin( 158 void FinishOpenChannelToPlugin(
159 const FilePath& plugin_path, 159 const FilePath& plugin_path,
160 PluginProcessHost::Client* client); 160 PluginProcessHost::Client* client);
161 161
162 #if defined(OS_LINUX) 162 #if defined(OS_LINUX)
163 // Registers a new FilePathWatcher for a given path. 163 // Registers a new FilePathWatcher for a given path.
164 static void RegisterFilePathWatcher( 164 static void RegisterFilePathWatcher(
165 FilePathWatcher* watcher, 165 base::files::FilePathWatcher* watcher,
166 const FilePath& path, 166 const FilePath& path,
167 FilePathWatcher::Delegate* delegate); 167 base::files::FilePathWatcher::Delegate* delegate);
168 #endif 168 #endif
169 169
170 // The main thread's message loop. 170 // The main thread's message loop.
171 MessageLoop* main_message_loop_; 171 MessageLoop* main_message_loop_;
172 172
173 // The IO thread's resource dispatcher host. 173 // The IO thread's resource dispatcher host.
174 ResourceDispatcherHost* resource_dispatcher_host_; 174 ResourceDispatcherHost* resource_dispatcher_host_;
175 175
176 // The browser's UI locale. 176 // The browser's UI locale.
177 const std::string ui_locale_; 177 const std::string ui_locale_;
(...skipping 13 matching lines...) Expand all
191 // Registry keys for getting notifications when new plugins are installed. 191 // Registry keys for getting notifications when new plugins are installed.
192 base::win::RegKey hkcu_key_; 192 base::win::RegKey hkcu_key_;
193 base::win::RegKey hklm_key_; 193 base::win::RegKey hklm_key_;
194 scoped_ptr<base::WaitableEvent> hkcu_event_; 194 scoped_ptr<base::WaitableEvent> hkcu_event_;
195 scoped_ptr<base::WaitableEvent> hklm_event_; 195 scoped_ptr<base::WaitableEvent> hklm_event_;
196 base::WaitableEventWatcher hkcu_watcher_; 196 base::WaitableEventWatcher hkcu_watcher_;
197 base::WaitableEventWatcher hklm_watcher_; 197 base::WaitableEventWatcher hklm_watcher_;
198 #endif 198 #endif
199 199
200 #if defined(OS_LINUX) 200 #if defined(OS_LINUX)
201 ScopedVector<FilePathWatcher> file_watchers_; 201 ScopedVector<base::files::FilePathWatcher> file_watchers_;
202 scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_; 202 scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_;
203 #endif 203 #endif
204 204
205 std::vector<PepperPluginInfo> ppapi_plugins_; 205 std::vector<PepperPluginInfo> ppapi_plugins_;
206 206
207 std::vector<OverriddenPlugin> overridden_plugins_; 207 std::vector<OverriddenPlugin> overridden_plugins_;
208 base::Lock overridden_plugins_lock_; 208 base::Lock overridden_plugins_lock_;
209 209
210 DISALLOW_COPY_AND_ASSIGN(PluginService); 210 DISALLOW_COPY_AND_ASSIGN(PluginService);
211 }; 211 };
212 212
213 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); 213 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService);
214 214
215 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ 215 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698