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

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

Issue 8341052: share all the needed linux code with OpenBSD in chrome and content (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: wrap long lines Created 9 years, 1 month 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
« no previous file with comments | « content/browser/gpu/gpu_blacklist_unittest.cc ('k') | content/browser/plugin_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
24 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
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 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include "base/memory/scoped_ptr.h" 30 #include "base/memory/scoped_ptr.h"
31 #include "base/win/registry.h" 31 #include "base/win/registry.h"
32 #endif 32 #endif
33 33
34 #if defined(OS_POSIX) && !defined(OS_MACOSX) 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
35 #include "base/files/file_path_watcher.h" 35 #include "base/files/file_path_watcher.h"
36 #endif 36 #endif
37 37
38 class PluginDirWatcherDelegate; 38 class PluginDirWatcherDelegate;
39 class PluginLoaderPosix; 39 class PluginLoaderPosix;
40 40
41 namespace base { 41 namespace base {
42 class MessageLoopProxy; 42 class MessageLoopProxy;
43 } 43 }
44 44
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 const std::string& mime_type, 230 const std::string& mime_type,
231 PluginProcessHost::Client* client, 231 PluginProcessHost::Client* client,
232 const content::ResourceContext* resource_context); 232 const content::ResourceContext* resource_context);
233 233
234 // Helper so we can finish opening the channel after looking up the 234 // Helper so we can finish opening the channel after looking up the
235 // plugin. 235 // plugin.
236 void FinishOpenChannelToPlugin( 236 void FinishOpenChannelToPlugin(
237 const FilePath& plugin_path, 237 const FilePath& plugin_path,
238 PluginProcessHost::Client* client); 238 PluginProcessHost::Client* client);
239 239
240 #if defined(OS_POSIX) && !defined(OS_MACOSX) 240 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
241 // Registers a new FilePathWatcher for a given path. 241 // Registers a new FilePathWatcher for a given path.
242 static void RegisterFilePathWatcher( 242 static void RegisterFilePathWatcher(
243 base::files::FilePathWatcher* watcher, 243 base::files::FilePathWatcher* watcher,
244 const FilePath& path, 244 const FilePath& path,
245 base::files::FilePathWatcher::Delegate* delegate); 245 base::files::FilePathWatcher::Delegate* delegate);
246 #endif 246 #endif
247 247
248 // The browser's UI locale. 248 // The browser's UI locale.
249 const std::string ui_locale_; 249 const std::string ui_locale_;
250 250
251 content::NotificationRegistrar registrar_; 251 content::NotificationRegistrar registrar_;
252 252
253 #if defined(OS_WIN) 253 #if defined(OS_WIN)
254 // Registry keys for getting notifications when new plugins are installed. 254 // Registry keys for getting notifications when new plugins are installed.
255 base::win::RegKey hkcu_key_; 255 base::win::RegKey hkcu_key_;
256 base::win::RegKey hklm_key_; 256 base::win::RegKey hklm_key_;
257 scoped_ptr<base::WaitableEvent> hkcu_event_; 257 scoped_ptr<base::WaitableEvent> hkcu_event_;
258 scoped_ptr<base::WaitableEvent> hklm_event_; 258 scoped_ptr<base::WaitableEvent> hklm_event_;
259 base::WaitableEventWatcher hkcu_watcher_; 259 base::WaitableEventWatcher hkcu_watcher_;
260 base::WaitableEventWatcher hklm_watcher_; 260 base::WaitableEventWatcher hklm_watcher_;
261 #endif 261 #endif
262 262
263 #if defined(OS_POSIX) && !defined(OS_MACOSX) 263 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
264 ScopedVector<base::files::FilePathWatcher> file_watchers_; 264 ScopedVector<base::files::FilePathWatcher> file_watchers_;
265 scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_; 265 scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_;
266 #endif 266 #endif
267 267
268 std::vector<content::PepperPluginInfo> ppapi_plugins_; 268 std::vector<content::PepperPluginInfo> ppapi_plugins_;
269 269
270 // Weak pointer; outlives us. 270 // Weak pointer; outlives us.
271 content::PluginServiceFilter* filter_; 271 content::PluginServiceFilter* filter_;
272 272
273 std::set<PluginProcessHost::Client*> pending_plugin_clients_; 273 std::set<PluginProcessHost::Client*> pending_plugin_clients_;
274 274
275 #if defined(OS_POSIX) 275 #if defined(OS_POSIX)
276 scoped_refptr<PluginLoaderPosix> plugin_loader_; 276 scoped_refptr<PluginLoaderPosix> plugin_loader_;
277 #endif 277 #endif
278 278
279 DISALLOW_COPY_AND_ASSIGN(PluginService); 279 DISALLOW_COPY_AND_ASSIGN(PluginService);
280 }; 280 };
281 281
282 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); 282 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService);
283 283
284 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ 284 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_blacklist_unittest.cc ('k') | content/browser/plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698