| 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 #pragma once | 10 #pragma once |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 content::ResourceContext* context, | 90 content::ResourceContext* context, |
| 91 const GURL& url, | 91 const GURL& url, |
| 92 const GURL& page_url, | 92 const GURL& page_url, |
| 93 const std::string& mime_type, | 93 const std::string& mime_type, |
| 94 bool allow_wildcard, | 94 bool allow_wildcard, |
| 95 bool* is_stale, | 95 bool* is_stale, |
| 96 webkit::WebPluginInfo* info, | 96 webkit::WebPluginInfo* info, |
| 97 std::string* actual_mime_type) OVERRIDE; | 97 std::string* actual_mime_type) OVERRIDE; |
| 98 virtual bool GetPluginInfoByPath(const FilePath& plugin_path, | 98 virtual bool GetPluginInfoByPath(const FilePath& plugin_path, |
| 99 webkit::WebPluginInfo* info) OVERRIDE; | 99 webkit::WebPluginInfo* info) OVERRIDE; |
| 100 virtual string16 GetPluginDisplayNameByPath(const FilePath& path) OVERRIDE; |
| 100 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; | 101 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; |
| 101 virtual void GetPluginGroups( | 102 virtual void GetPluginGroups( |
| 102 const GetPluginGroupsCallback& callback) OVERRIDE; | 103 const GetPluginGroupsCallback& callback) OVERRIDE; |
| 103 virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo( | 104 virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo( |
| 104 const FilePath& plugin_path) OVERRIDE; | 105 const FilePath& plugin_path) OVERRIDE; |
| 105 virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE; | 106 virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE; |
| 106 virtual content::PluginServiceFilter* GetFilter() OVERRIDE; | 107 virtual content::PluginServiceFilter* GetFilter() OVERRIDE; |
| 107 virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE; | 108 virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE; |
| 108 virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE; | 109 virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE; |
| 109 virtual void RefreshPlugins() OVERRIDE; | 110 virtual void RefreshPlugins() OVERRIDE; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 scoped_refptr<PluginLoaderPosix> plugin_loader_; | 244 scoped_refptr<PluginLoaderPosix> plugin_loader_; |
| 244 #endif | 245 #endif |
| 245 | 246 |
| 246 // Used to detect if a given plug-in is crashing over and over. | 247 // Used to detect if a given plug-in is crashing over and over. |
| 247 std::map<FilePath, std::vector<base::Time> > crash_times_; | 248 std::map<FilePath, std::vector<base::Time> > crash_times_; |
| 248 | 249 |
| 249 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); | 250 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 253 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
| OLD | NEW |