Chromium Code Reviews| Index: chrome/common/extensions/user_script.h |
| diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h |
| index 49632e5e8f3e8b6890d96efb1050910d11785f04..4f79c6c16b79aba4b29a0ddecfc4f71a1525dec4 100644 |
| --- a/chrome/common/extensions/user_script.h |
| +++ b/chrome/common/extensions/user_script.h |
| @@ -28,7 +28,8 @@ class UserScript { |
| // The bitmask for valid user script injectable schemes used by URLPattern. |
| enum { |
|
Matt Perry
2013/03/19 17:49:32
Move this into the .cc file so no one accidentally
aboxhall
2013/03/20 22:04:59
Done.
|
| - kValidUserScriptSchemes = URLPattern::SCHEME_HTTP | |
| + kValidUserScriptSchemes = URLPattern::SCHEME_CHROMEUI | |
| + URLPattern::SCHEME_HTTP | |
| URLPattern::SCHEME_HTTPS | |
| URLPattern::SCHEME_FILE | |
| URLPattern::SCHEME_FTP |
| @@ -38,6 +39,8 @@ class UserScript { |
| // extension. |
| static bool IsURLUserScript(const GURL& url, const std::string& mime_type); |
| + static int ValidUserScriptSchemes(bool canExecuteScriptEverywhere); |
|
Matt Perry
2013/03/19 17:49:32
Comment this.
aboxhall
2013/03/20 22:04:59
Done.
|
| + |
| // Locations that user scripts can be run inside the document. |
| enum RunLocation { |
| UNDEFINED, |