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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPL_H_ 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const base::FilePath& path, 150 const base::FilePath& path,
151 PpapiPluginProcessHost::BrokerClient* client); 151 PpapiPluginProcessHost::BrokerClient* client);
152 152
153 // Cancels opening a channel to a NPAPI plugin. 153 // Cancels opening a channel to a NPAPI plugin.
154 void CancelOpenChannelToNpapiPlugin(PluginProcessHost::Client* client); 154 void CancelOpenChannelToNpapiPlugin(PluginProcessHost::Client* client);
155 155
156 // Used to monitor plugin stability. 156 // Used to monitor plugin stability.
157 void RegisterPluginCrash(const base::FilePath& plugin_path); 157 void RegisterPluginCrash(const base::FilePath& plugin_path);
158 158
159 private: 159 private:
160 friend struct DefaultSingletonTraits<PluginServiceImpl>; 160 friend struct base::DefaultSingletonTraits<PluginServiceImpl>;
161 161
162 // Creates the PluginServiceImpl object, but doesn't actually build the plugin 162 // Creates the PluginServiceImpl object, but doesn't actually build the plugin
163 // list yet. It's generated lazily. 163 // list yet. It's generated lazily.
164 PluginServiceImpl(); 164 PluginServiceImpl();
165 ~PluginServiceImpl() override; 165 ~PluginServiceImpl() override;
166 166
167 #if defined(OS_WIN) 167 #if defined(OS_WIN)
168 void OnKeyChanged(base::win::RegKey* key); 168 void OnKeyChanged(base::win::RegKey* key);
169 #endif 169 #endif
170 170
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 // Used to detect if a given plugin is crashing over and over. 248 // Used to detect if a given plugin is crashing over and over.
249 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 249 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
250 250
251 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 251 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
252 }; 252 };
253 253
254 } // namespace content 254 } // namespace content
255 255
256 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 256 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/notifications/notification_event_dispatcher_impl.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698