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

Side by Side Diff: content/public/browser/plugin_service.h

Issue 19844003: Remove webkit/plugins/npapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove GetDefaultWindowParent Created 7 years, 5 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 | Annotate | Revision Log
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 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool add_at_beginning) = 0; 136 bool add_at_beginning) = 0;
137 137
138 // Removes a specified internal plugin from the list. The search will match 138 // Removes a specified internal plugin from the list. The search will match
139 // on the path from the version info previously registered. 139 // on the path from the version info previously registered.
140 virtual void UnregisterInternalPlugin(const base::FilePath& path) = 0; 140 virtual void UnregisterInternalPlugin(const base::FilePath& path) = 0;
141 141
142 // Gets a list of all the registered internal plugins. 142 // Gets a list of all the registered internal plugins.
143 virtual void GetInternalPlugins( 143 virtual void GetInternalPlugins(
144 std::vector<webkit::WebPluginInfo>* plugins) = 0; 144 std::vector<webkit::WebPluginInfo>* plugins) = 0;
145 145
146 // Returns true iff NPAPI plugins are supported on the current platform.
147 // This can be called from any thread.
148 virtual bool NPAPIPluginsSupported() = 0;
149
146 // This is equivalent to specifying kDisablePluginsDiscovery, but is useful 150 // This is equivalent to specifying kDisablePluginsDiscovery, but is useful
147 // for unittests. 151 // for unittests.
148 virtual void DisablePluginsDiscoveryForTesting() = 0; 152 virtual void DisablePluginsDiscoveryForTesting() = 0;
149 153
150 #if defined(OS_MACOSX) 154 #if defined(OS_MACOSX)
151 // Called when the application is made active so that modal plugin windows can 155 // Called when the application is made active so that modal plugin windows can
152 // be made forward too. 156 // be made forward too.
153 virtual void AppActivated() = 0; 157 virtual void AppActivated() = 0;
158 #elif defined(OS_WIN)
159 // Returns the name and version of a plugin HWND. If the HWND isn't a valid
160 // plugin, returns false.
161 // This can be called from any thread.
162 virtual bool GetPluginInfoFromWindow(HWND window,
163 base::string16* plugin_name,
164 base::string16* plugin_version) = 0;
154 #endif 165 #endif
155 }; 166 };
156 167
157 } // namespace content 168 } // namespace content
158 169
159 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 170 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698