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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool* is_stale, | 89 bool* is_stale, |
90 WebPluginInfo* info, | 90 WebPluginInfo* info, |
91 std::string* actual_mime_type) OVERRIDE; | 91 std::string* actual_mime_type) OVERRIDE; |
92 virtual bool GetPluginInfoByPath(const base::FilePath& plugin_path, | 92 virtual bool GetPluginInfoByPath(const base::FilePath& plugin_path, |
93 WebPluginInfo* info) OVERRIDE; | 93 WebPluginInfo* info) OVERRIDE; |
94 virtual string16 GetPluginDisplayNameByPath( | 94 virtual string16 GetPluginDisplayNameByPath( |
95 const base::FilePath& path) OVERRIDE; | 95 const base::FilePath& path) OVERRIDE; |
96 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; | 96 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; |
97 virtual PepperPluginInfo* GetRegisteredPpapiPluginInfo( | 97 virtual PepperPluginInfo* GetRegisteredPpapiPluginInfo( |
98 const base::FilePath& plugin_path) OVERRIDE; | 98 const base::FilePath& plugin_path) OVERRIDE; |
| 99 virtual bool IsPepperPluginRegisteredForMimeType( |
| 100 const std::string& mime_type) OVERRIDE; |
99 virtual void SetFilter(PluginServiceFilter* filter) OVERRIDE; | 101 virtual void SetFilter(PluginServiceFilter* filter) OVERRIDE; |
100 virtual PluginServiceFilter* GetFilter() OVERRIDE; | 102 virtual PluginServiceFilter* GetFilter() OVERRIDE; |
101 virtual void ForcePluginShutdown(const base::FilePath& plugin_path) OVERRIDE; | 103 virtual void ForcePluginShutdown(const base::FilePath& plugin_path) OVERRIDE; |
102 virtual bool IsPluginUnstable(const base::FilePath& plugin_path) OVERRIDE; | 104 virtual bool IsPluginUnstable(const base::FilePath& plugin_path) OVERRIDE; |
103 virtual void RefreshPlugins() OVERRIDE; | 105 virtual void RefreshPlugins() OVERRIDE; |
104 virtual void AddExtraPluginPath(const base::FilePath& path) OVERRIDE; | 106 virtual void AddExtraPluginPath(const base::FilePath& path) OVERRIDE; |
105 virtual void RemoveExtraPluginPath(const base::FilePath& path) OVERRIDE; | 107 virtual void RemoveExtraPluginPath(const base::FilePath& path) OVERRIDE; |
106 virtual void AddExtraPluginDir(const base::FilePath& path) OVERRIDE; | 108 virtual void AddExtraPluginDir(const base::FilePath& path) OVERRIDE; |
107 virtual void RegisterInternalPlugin( | 109 virtual void RegisterInternalPlugin( |
108 const WebPluginInfo& info, bool add_at_beginning) OVERRIDE; | 110 const WebPluginInfo& info, bool add_at_beginning) OVERRIDE; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 246 |
245 // 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. |
246 std::map<base::FilePath, std::vector<base::Time> > crash_times_; | 248 std::map<base::FilePath, std::vector<base::Time> > crash_times_; |
247 | 249 |
248 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); | 250 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); |
249 }; | 251 }; |
250 | 252 |
251 } // namespace content | 253 } // namespace content |
252 | 254 |
253 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 255 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
OLD | NEW |