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

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: Fix up bauerb's final few comments. 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..af2d61e7d97cf818e4e91a23b51735b258f143ae 100644
--- a/chrome/common/chrome_content_client.h
+++ b/chrome/common/chrome_content_client.h
@@ -48,6 +48,13 @@ 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 if given an empty vector.
+ // The method is only visible for testing purposes.
+ static content::PepperPluginInfo* FindMostRecentPlugin(
+ const std::vector<content::PepperPluginInfo*>& plugins);
#endif
void SetActiveURL(const GURL& url) override;

Powered by Google App Engine
This is Rietveld 408576698