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

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

Issue 10918174: Remove PluginGroup (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_async_plugin_finder
Patch Set: Created 8 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 namespace content { 48 namespace content {
49 class BrowserContext; 49 class BrowserContext;
50 class PluginServiceFilter; 50 class PluginServiceFilter;
51 class ResourceContext; 51 class ResourceContext;
52 struct PepperPluginInfo; 52 struct PepperPluginInfo;
53 } 53 }
54 54
55 namespace webkit { 55 namespace webkit {
56 namespace npapi { 56 namespace npapi {
57 class PluginGroup;
58 class PluginList; 57 class PluginList;
59 } 58 }
60 } 59 }
61 60
62 // base::Bind() has limited arity, and the filter-related methods tend to 61 // base::Bind() has limited arity, and the filter-related methods tend to
63 // surpass that limit. 62 // surpass that limit.
64 struct PluginServiceFilterParams { 63 struct PluginServiceFilterParams {
65 int render_process_id; 64 int render_process_id;
66 int render_view_id; 65 int render_view_id;
67 GURL page_url; 66 GURL page_url;
(...skipping 24 matching lines...) Expand all
92 const GURL& page_url, 91 const GURL& page_url,
93 const std::string& mime_type, 92 const std::string& mime_type,
94 bool allow_wildcard, 93 bool allow_wildcard,
95 bool* is_stale, 94 bool* is_stale,
96 webkit::WebPluginInfo* info, 95 webkit::WebPluginInfo* info,
97 std::string* actual_mime_type) OVERRIDE; 96 std::string* actual_mime_type) OVERRIDE;
98 virtual bool GetPluginInfoByPath(const FilePath& plugin_path, 97 virtual bool GetPluginInfoByPath(const FilePath& plugin_path,
99 webkit::WebPluginInfo* info) OVERRIDE; 98 webkit::WebPluginInfo* info) OVERRIDE;
100 virtual string16 GetPluginDisplayNameByPath(const FilePath& path) OVERRIDE; 99 virtual string16 GetPluginDisplayNameByPath(const FilePath& path) OVERRIDE;
101 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; 100 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE;
102 virtual void GetPluginGroups(
103 const GetPluginGroupsCallback& callback) OVERRIDE;
104 virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo( 101 virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo(
105 const FilePath& plugin_path) OVERRIDE; 102 const FilePath& plugin_path) OVERRIDE;
106 virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE; 103 virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE;
107 virtual content::PluginServiceFilter* GetFilter() OVERRIDE; 104 virtual content::PluginServiceFilter* GetFilter() OVERRIDE;
108 virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE; 105 virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE;
109 virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE; 106 virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE;
110 virtual void RefreshPlugins() OVERRIDE; 107 virtual void RefreshPlugins() OVERRIDE;
111 virtual void AddExtraPluginPath(const FilePath& path) OVERRIDE; 108 virtual void AddExtraPluginPath(const FilePath& path) OVERRIDE;
112 virtual void AddExtraPluginDir(const FilePath& path) OVERRIDE; 109 virtual void AddExtraPluginDir(const FilePath& path) OVERRIDE;
113 virtual void RemoveExtraPluginPath(const FilePath& path) OVERRIDE; 110 virtual void RemoveExtraPluginPath(const FilePath& path) OVERRIDE;
114 virtual void UnregisterInternalPlugin(const FilePath& path) OVERRIDE; 111 virtual void UnregisterInternalPlugin(const FilePath& path) OVERRIDE;
115 virtual void RegisterInternalPlugin( 112 virtual void RegisterInternalPlugin(
116 const webkit::WebPluginInfo& info, bool add_at_beginning) OVERRIDE; 113 const webkit::WebPluginInfo& info, bool add_at_beginning) OVERRIDE;
117 virtual string16 GetPluginGroupName(const std::string& plugin_name) OVERRIDE;
118 virtual webkit::npapi::PluginList* GetPluginList() OVERRIDE; 114 virtual webkit::npapi::PluginList* GetPluginList() OVERRIDE;
119 virtual void SetPluginListForTesting( 115 virtual void SetPluginListForTesting(
120 webkit::npapi::PluginList* plugin_list) OVERRIDE; 116 webkit::npapi::PluginList* plugin_list) OVERRIDE;
121 117
122 // Returns the plugin process host corresponding to the plugin process that 118 // Returns the plugin process host corresponding to the plugin process that
123 // has been started by this service. This will start a process to host the 119 // has been started by this service. This will start a process to host the
124 // 'plugin_path' if needed. If the process fails to start, the return value 120 // 'plugin_path' if needed. If the process fails to start, the return value
125 // is NULL. Must be called on the IO thread. 121 // is NULL. Must be called on the IO thread.
126 PluginProcessHost* FindOrStartNpapiPluginProcess( 122 PluginProcessHost* FindOrStartNpapiPluginProcess(
127 const FilePath& plugin_path); 123 const FilePath& plugin_path);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 scoped_refptr<PluginLoaderPosix> plugin_loader_; 250 scoped_refptr<PluginLoaderPosix> plugin_loader_;
255 #endif 251 #endif
256 252
257 // Used to detect if a given plug-in is crashing over and over. 253 // Used to detect if a given plug-in is crashing over and over.
258 std::map<FilePath, std::vector<base::Time> > crash_times_; 254 std::map<FilePath, std::vector<base::Time> > crash_times_;
259 255
260 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 256 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
261 }; 257 };
262 258
263 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 259 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698