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

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

Issue 3836005: Move pe_image and registry from base to base/win and use the namespace. It re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 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 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/hash_tables.h" 16 #include "base/hash_tables.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/common/notification_observer.h" 19 #include "chrome/common/notification_observer.h"
20 #include "chrome/common/notification_registrar.h" 20 #include "chrome/common/notification_registrar.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 22
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 #include "base/registry.h"
25 #include "base/scoped_ptr.h" 24 #include "base/scoped_ptr.h"
25 #include "base/win/registry.h"
26 #endif 26 #endif
27 27
28 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
29 namespace chromeos { 29 namespace chromeos {
30 class PluginSelectionPolicy; 30 class PluginSelectionPolicy;
31 } 31 }
32 #endif 32 #endif
33 33
34 namespace IPC { 34 namespace IPC {
35 class Message; 35 class Message;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 PrivatePluginMap private_plugins_; 161 PrivatePluginMap private_plugins_;
162 162
163 NotificationRegistrar registrar_; 163 NotificationRegistrar registrar_;
164 164
165 #if defined(OS_CHROMEOS) 165 #if defined(OS_CHROMEOS)
166 scoped_refptr<chromeos::PluginSelectionPolicy> plugin_selection_policy_; 166 scoped_refptr<chromeos::PluginSelectionPolicy> plugin_selection_policy_;
167 #endif 167 #endif
168 168
169 #if defined(OS_WIN) 169 #if defined(OS_WIN)
170 // Registry keys for getting notifications when new plugins are installed. 170 // Registry keys for getting notifications when new plugins are installed.
171 RegKey hkcu_key_; 171 base::win::RegKey hkcu_key_;
172 RegKey hklm_key_; 172 base::win::RegKey hklm_key_;
173 scoped_ptr<base::WaitableEvent> hkcu_event_; 173 scoped_ptr<base::WaitableEvent> hkcu_event_;
174 scoped_ptr<base::WaitableEvent> hklm_event_; 174 scoped_ptr<base::WaitableEvent> hklm_event_;
175 base::WaitableEventWatcher hkcu_watcher_; 175 base::WaitableEventWatcher hkcu_watcher_;
176 base::WaitableEventWatcher hklm_watcher_; 176 base::WaitableEventWatcher hklm_watcher_;
177 #endif 177 #endif
178 178
179 // Set to true if chrome plugins are enabled. Defaults to true. 179 // Set to true if chrome plugins are enabled. Defaults to true.
180 static bool enable_chrome_plugins_; 180 static bool enable_chrome_plugins_;
181 181
182 DISALLOW_COPY_AND_ASSIGN(PluginService); 182 DISALLOW_COPY_AND_ASSIGN(PluginService);
183 }; 183 };
184 184
185 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); 185 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService);
186 186
187 #endif // CHROME_BROWSER_PLUGIN_SERVICE_H_ 187 #endif // CHROME_BROWSER_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_win.cc ('k') | chrome/browser/policy/configuration_policy_provider_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698