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

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

Issue 1158423003: Disable NPAPI support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unneeded function declaration Created 5 years, 6 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
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // on the path from the version info previously registered. 136 // on the path from the version info previously registered.
137 virtual void UnregisterInternalPlugin(const base::FilePath& path) = 0; 137 virtual void UnregisterInternalPlugin(const base::FilePath& path) = 0;
138 138
139 // Gets a list of all the registered internal plugins. 139 // Gets a list of all the registered internal plugins.
140 virtual void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) = 0; 140 virtual void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) = 0;
141 141
142 // Returns true iff NPAPI plugins are supported on the current platform. 142 // Returns true iff NPAPI plugins are supported on the current platform.
143 // This can be called from any thread. 143 // This can be called from any thread.
144 virtual bool NPAPIPluginsSupported() = 0; 144 virtual bool NPAPIPluginsSupported() = 0;
145 145
146 // This is equivalent to specifying kEnableNpapi.
147 virtual void EnableNpapiPlugins() = 0;
148
149 // This is equivalent to specifying kDisablePluginsDiscovery, but is useful 146 // This is equivalent to specifying kDisablePluginsDiscovery, but is useful
150 // for unittests. 147 // for unittests.
151 virtual void DisablePluginsDiscoveryForTesting() = 0; 148 virtual void DisablePluginsDiscoveryForTesting() = 0;
152 149
153 #if defined(OS_MACOSX) 150 #if defined(OS_MACOSX)
154 // Called when the application is made active so that modal plugin windows can 151 // Called when the application is made active so that modal plugin windows can
155 // be made forward too. 152 // be made forward too.
156 virtual void AppActivated() = 0; 153 virtual void AppActivated() = 0;
157 #elif defined(OS_WIN) 154 #elif defined(OS_WIN)
158 // Returns the name and version of a plugin HWND. If the HWND isn't a valid 155 // Returns the name and version of a plugin HWND. If the HWND isn't a valid
159 // plugin, returns false. 156 // plugin, returns false.
160 // This can be called from any thread. 157 // This can be called from any thread.
161 virtual bool GetPluginInfoFromWindow(HWND window, 158 virtual bool GetPluginInfoFromWindow(HWND window,
162 base::string16* plugin_name, 159 base::string16* plugin_name,
163 base::string16* plugin_version) = 0; 160 base::string16* plugin_version) = 0;
164 #endif 161 #endif
165 162
166 // Returns true iff PPAPI "dev channel" methods are supported. 163 // Returns true iff PPAPI "dev channel" methods are supported.
167 virtual bool PpapiDevChannelSupported(BrowserContext* browser_context, 164 virtual bool PpapiDevChannelSupported(BrowserContext* browser_context,
168 const GURL& document_url) = 0; 165 const GURL& document_url) = 0;
169 }; 166 };
170 167
171 } // namespace content 168 } // namespace content
172 169
173 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 170 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698