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

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

Issue 8892012: Define kValidUserScriptSchemes in the .h file so that it can be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « no previous file | chrome/common/extensions/user_script.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/user_script.h
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index 6153f4bd4adcc01abd3fd6869fade2cbb434d463..71c31acd30f656b050191f48148957d08cfff5d3 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -16,7 +16,6 @@
#include "chrome/common/extensions/url_pattern_set.h"
class Pickle;
-class URLPattern;
// Represents a user script, either a standalone one, or one that is part of an
// extension.
@@ -26,7 +25,12 @@ class UserScript {
static const char kFileExtension[];
// The bitmask for valid user script injectable schemes used by URLPattern.
- static const int kValidUserScriptSchemes;
+ enum {
+ kValidUserScriptSchemes = URLPattern::SCHEME_HTTP |
+ URLPattern::SCHEME_HTTPS |
+ URLPattern::SCHEME_FILE |
+ URLPattern::SCHEME_FTP
+ };
// Check if a URL should be treated as a user script and converted to an
// extension.
« no previous file with comments | « no previous file | chrome/common/extensions/user_script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698