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

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

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase Created 4 years, 9 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_process_host.cc ('k') | content/browser/plugin_service_impl.cc » ('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 // 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void RemoveExtraPluginPath(const base::FilePath& path) override; 102 void RemoveExtraPluginPath(const base::FilePath& path) override;
103 void AddExtraPluginDir(const base::FilePath& path) override; 103 void AddExtraPluginDir(const base::FilePath& path) override;
104 void RegisterInternalPlugin(const WebPluginInfo& info, 104 void RegisterInternalPlugin(const WebPluginInfo& info,
105 bool add_at_beginning) override; 105 bool add_at_beginning) override;
106 void UnregisterInternalPlugin(const base::FilePath& path) override; 106 void UnregisterInternalPlugin(const base::FilePath& path) override;
107 void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) override; 107 void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) override;
108 bool NPAPIPluginsSupported() override; 108 bool NPAPIPluginsSupported() override;
109 void DisablePluginsDiscoveryForTesting() override; 109 void DisablePluginsDiscoveryForTesting() override;
110 #if defined(OS_MACOSX) 110 #if defined(OS_MACOSX)
111 void AppActivated() override; 111 void AppActivated() override;
112 #elif defined(OS_WIN)
113 bool GetPluginInfoFromWindow(HWND window,
114 base::string16* plugin_name,
115 base::string16* plugin_version) override;
116
117 // Returns true iff the given HWND is a plugin.
118 bool IsPluginWindow(HWND window);
119 #endif 112 #endif
120 bool PpapiDevChannelSupported(BrowserContext* browser_context, 113 bool PpapiDevChannelSupported(BrowserContext* browser_context,
121 const GURL& document_url) override; 114 const GURL& document_url) override;
122 115
123 // Returns the plugin process host corresponding to the plugin process that 116 // Returns the plugin process host corresponding to the plugin process that
124 // has been started by this service. This will start a process to host the 117 // has been started by this service. This will start a process to host the
125 // 'plugin_path' if needed. If the process fails to start, the return value 118 // 'plugin_path' if needed. If the process fails to start, the return value
126 // is NULL. Must be called on the IO thread. 119 // is NULL. Must be called on the IO thread.
127 PluginProcessHost* FindOrStartNpapiPluginProcess( 120 PluginProcessHost* FindOrStartNpapiPluginProcess(
128 int render_process_id, const base::FilePath& plugin_path); 121 int render_process_id, const base::FilePath& plugin_path);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 240
248 // Used to detect if a given plugin is crashing over and over. 241 // Used to detect if a given plugin is crashing over and over.
249 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 242 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
250 243
251 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 244 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
252 }; 245 };
253 246
254 } // namespace content 247 } // namespace content
255 248
256 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 249 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698