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

Unified Diff: chrome/browser/plugins/chrome_plugin_service_filter.h

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into 293-hbd-implement-blan… Created 4 years, 2 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/browser/plugins/chrome_plugin_service_filter.h
diff --git a/chrome/browser/plugins/chrome_plugin_service_filter.h b/chrome/browser/plugins/chrome_plugin_service_filter.h
index 28108729988022c8e43e968d1396e2968a350b91..133145db74bff8dde33b379c2c59dcf0135cf9d2 100644
--- a/chrome/browser/plugins/chrome_plugin_service_filter.h
+++ b/chrome/browser/plugins/chrome_plugin_service_filter.h
@@ -20,6 +20,7 @@
#include "content/public/browser/plugin_service_filter.h"
#include "content/public/common/webplugininfo.h"
#include "url/gurl.h"
+#include "url/origin.h"
class Profile;
@@ -59,13 +60,13 @@ class ChromePluginServiceFilter : public content::PluginServiceFilter,
const std::string& identifier);
// PluginServiceFilter implementation.
- // If |plugin_content_url| is not available, the same GURL passed as
- // |top_level_url| should be passed. These GURLs may be empty.
+ // If |plugin_content_url| is not available, pass the same URL used to
+ // generate |main_frame_origin|. These parameters may be empty.
bool IsPluginAvailable(int render_process_id,
int render_frame_id,
const void* context,
const GURL& plugin_content_url,
- const GURL& top_level_url,
+ const url::Origin& main_frame_origin,
content::WebPluginInfo* plugin) override;
// CanLoadPlugin always grants permission to the browser

Powered by Google App Engine
This is Rietveld 408576698