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

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

Issue 10695070: Implement scriptBadge.requestToAct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 4a21612ecebc4d0c5c88df943bf51710fbf3eb97..0b638cc931d8d951cec025d49cfeae5297f8f742 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -521,6 +521,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
const UserScript* script,
std::string* error) const;
+ bool CanRequestToActOnPage(const GURL& page_url,
+ int tab_id) const;
+
// Returns true if this extension is a COMPONENT extension, or if it is
// on the whitelist of extensions that can script all pages.
bool CanExecuteScriptEverywhere() const;
@@ -886,6 +889,12 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// |override_url|.
void OverrideLaunchUrl(const GURL& override_url);
+ // Returns true and sets *error if page_url is too sensitive for this
+ // extension to run on it, even if it has user permission. Doesn't try to set
+ // a NULL error.
+ bool IsPageTooSensitiveForScript(const GURL& page_url,
Aaron Boodman 2012/07/03 01:29:31 Makes me think of a page that starts crying as soo
Jeffrey Yasskin 2012/07/10 21:52:33 Heh. Got a better name? ;)
+ std::string* error) const;
+
// Custom checks for the experimental permission that can't be expressed in
// _permission_features.json.
bool CanSpecifyExperimentalPermission() const;

Powered by Google App Engine
This is Rietveld 408576698