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

Unified Diff: extensions/common/user_script.h

Issue 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move GetEffectiveDocumentURL to ScriptContext Created 6 years, 7 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
« no previous file with comments | « extensions/common/manifest_constants.cc ('k') | extensions/common/user_script.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/user_script.h
diff --git a/extensions/common/user_script.h b/extensions/common/user_script.h
index 76b64d459a7ad42e0c49b0681012ce70bdf9381b..05974c7fa4db6359e50c30a4e67339da9cc644c9 100644
--- a/extensions/common/user_script.h
+++ b/extensions/common/user_script.h
@@ -137,6 +137,10 @@ class UserScript {
bool match_all_frames() const { return match_all_frames_; }
void set_match_all_frames(bool val) { match_all_frames_ = val; }
+ // Whether to match about:blank and about:srcdoc.
+ bool match_about_blank() const { return match_about_blank_; }
+ void set_match_about_blank(bool val) { match_about_blank_ = val; }
+
// The globs, if any, that determine which pages this script runs against.
// These are only used with "standalone" Greasemonkey-like user scripts.
const std::vector<std::string>& globs() const { return globs_; }
@@ -249,6 +253,10 @@ class UserScript {
// Defaults to false.
bool match_all_frames_;
+ // Whether the user script should run in about:blank and about:srcdoc as well.
+ // Defaults to false.
+ bool match_about_blank_;
+
// True if the script should be injected into an incognito tab.
bool incognito_enabled_;
};
« no previous file with comments | « extensions/common/manifest_constants.cc ('k') | extensions/common/user_script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698