Chromium Code Reviews| 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; |