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

Unified Diff: chrome/common/chrome_content_client.h

Issue 1261333004: Add support for Flash Player Component updates on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further refinements. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/chrome_content_client.h
diff --git a/chrome/common/chrome_content_client.h b/chrome/common/chrome_content_client.h
index 38c14d6824a44a710da78fcbf02d3c5d14994d05..f3077985e99d24c71bdeeca71e8862c6e7bb81e7 100644
--- a/chrome/common/chrome_content_client.h
+++ b/chrome/common/chrome_content_client.h
@@ -48,6 +48,12 @@ class ChromeContentClient : public content::ContentClient {
content::PepperPluginInfo::GetInterfaceFunc get_interface,
content::PepperPluginInfo::PPP_InitializeModuleFunc initialize_module,
content::PepperPluginInfo::PPP_ShutdownModuleFunc shutdown_module);
+
+ // This returns the most recent plugin based on the plugin versions.
+ // It does not make sense to call this on a vector that contains more than one
+ // plugin type. This function may return a nullptr.
Bernhard Bauer 2015/08/13 12:40:26 Under which circumstances?
Greg K 2015/08/13 22:00:44 Done.
+ static content::PepperPluginInfo* FindMostRecentPlugin(
Bernhard Bauer 2015/08/13 12:40:26 Is this method called outside of ChromeContentClie
Greg K 2015/08/13 22:00:44 Done.
+ const std::vector<content::PepperPluginInfo*>& plugins);
#endif
void SetActiveURL(const GURL& url) override;

Powered by Google App Engine
This is Rietveld 408576698