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

Unified Diff: chrome/renderer/extensions/user_script_slave.h

Issue 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no about:blank for user scripts, remove permission from test Created 6 years, 8 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/renderer/extensions/user_script_slave.h
diff --git a/chrome/renderer/extensions/user_script_slave.h b/chrome/renderer/extensions/user_script_slave.h
index a538014c06fc2075d3f874966e2fe18b205f9f93..394ad3a419d6a3a29b74714e0ebbf9420d1f1b35 100644
--- a/chrome/renderer/extensions/user_script_slave.h
+++ b/chrome/renderer/extensions/user_script_slave.h
@@ -36,6 +36,10 @@ class UserScriptSlave {
// committed, this is the commited URL. Otherwise it is the provisional URL.
static GURL GetDataSourceURLForFrame(const blink::WebFrame* frame);
+ // Get the URL of a frame, based on its securityOrigin. If the security origin
+ // is unique, the frame's URL is returned instead.
+ static GURL GetOriginURLForFrame(const blink::WebFrame* frame);
+
explicit UserScriptSlave(const ExtensionSet* extensions);
~UserScriptSlave();

Powered by Google App Engine
This is Rietveld 408576698