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

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

Issue 23828007: Check whether the Pepper CDM is available before adding the key system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | no next file » | 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Asynchronously loads plugins if necessary and then calls back to the 95 // Asynchronously loads plugins if necessary and then calls back to the
96 // provided function on the calling MessageLoop on completion. 96 // provided function on the calling MessageLoop on completion.
97 virtual void GetPlugins(const GetPluginsCallback& callback) = 0; 97 virtual void GetPlugins(const GetPluginsCallback& callback) = 0;
98 98
99 // Returns information about a pepper plugin if it exists, otherwise NULL. 99 // Returns information about a pepper plugin if it exists, otherwise NULL.
100 // The caller does not own the pointer, and it's not guaranteed to live past 100 // The caller does not own the pointer, and it's not guaranteed to live past
101 // the call stack. 101 // the call stack.
102 virtual PepperPluginInfo* GetRegisteredPpapiPluginInfo( 102 virtual PepperPluginInfo* GetRegisteredPpapiPluginInfo(
103 const base::FilePath& plugin_path) = 0; 103 const base::FilePath& plugin_path) = 0;
104 104
105 // Returns whether any Pepper plugin supporting |mime_type| is registered.
106 // Does not determine whether the plugin can actually be instantiated
107 // (e.g. whether it is allowed or has all its dependencies).
108 virtual bool IsPepperPluginRegisteredForMimeType(
jam 2013/09/17 00:27:57 seems that you can avoid changing content, since c
ddorwin 2013/09/17 01:41:18 Yes, it's because chrome doesn't keep track (and p
Bernhard Bauer 2013/09/17 14:52:57 For locations in chrome/ that register plug-ins on
ddorwin 2013/09/17 17:19:53 We don't need to load it, but we make sure PathExi
109 const std::string& mime_type) = 0;
110
105 virtual void SetFilter(PluginServiceFilter* filter) = 0; 111 virtual void SetFilter(PluginServiceFilter* filter) = 0;
106 virtual PluginServiceFilter* GetFilter() = 0; 112 virtual PluginServiceFilter* GetFilter() = 0;
107 113
108 // If the plugin with the given path is running, cleanly shuts it down. 114 // If the plugin with the given path is running, cleanly shuts it down.
109 virtual void ForcePluginShutdown(const base::FilePath& plugin_path) = 0; 115 virtual void ForcePluginShutdown(const base::FilePath& plugin_path) = 0;
110 116
111 // Used to monitor plug-in stability. An unstable plug-in is one that has 117 // Used to monitor plug-in stability. An unstable plug-in is one that has
112 // crashed more than a set number of times in a set time period. 118 // crashed more than a set number of times in a set time period.
113 virtual bool IsPluginUnstable(const base::FilePath& plugin_path) = 0; 119 virtual bool IsPluginUnstable(const base::FilePath& plugin_path) = 0;
114 120
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // This can be called from any thread. 163 // This can be called from any thread.
158 virtual bool GetPluginInfoFromWindow(HWND window, 164 virtual bool GetPluginInfoFromWindow(HWND window,
159 base::string16* plugin_name, 165 base::string16* plugin_name,
160 base::string16* plugin_version) = 0; 166 base::string16* plugin_version) = 0;
161 #endif 167 #endif
162 }; 168 };
163 169
164 } // namespace content 170 } // namespace content
165 171
166 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 172 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698