| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|