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

Unified Diff: chrome/common/extensions/extension.h

Issue 10863002: Added check to prevent extensions from injecting scrips into other extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added license comments Created 8 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
« no previous file with comments | « chrome/browser/extensions/content_script_apitest.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 74322094c70639a2a89e849e5ccc3056b1df41cb..5091bf685784c914038851fb0dae8d8a26fe7ee9 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -531,7 +531,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
//
// This method is also aware of certain special pages that extensions are
// usually not allowed to run script on.
- bool CanExecuteScriptOnPage(const GURL& page_url,
+ bool CanExecuteScriptOnPage(const GURL& document_url,
+ const GURL& top_document_url,
int tab_id,
const UserScript* script,
std::string* error) const;
« no previous file with comments | « chrome/browser/extensions/content_script_apitest.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698