summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/user_script.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 02:01:40 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 02:01:40 +0000
commitbac4f4b0d49057c75c362dc1bad6ee955b0d0c7e (patch)
tree7fea72b50fa64dc78da2de61880e386b4c7b1bc5 /chrome/common/extensions/user_script.h
parentdb803aaecaa3270b2b21c3d4200dc04cf733b655 (diff)
downloadchromium_src-bac4f4b0d49057c75c362dc1bad6ee955b0d0c7e.zip
chromium_src-bac4f4b0d49057c75c362dc1bad6ee955b0d0c7e.tar.gz
chromium_src-bac4f4b0d49057c75c362dc1bad6ee955b0d0c7e.tar.bz2
Don't try to convert text/html URLs ending in .user.js.
This doesn't solve the problem with view-source://, that is a separate issue. BUG=35795 TEST=manual, see bug. Review URL: http://codereview.chromium.org/6574033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/user_script.h')
-rw-r--r--chrome/common/extensions/user_script.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index 203fb62..3be2f11 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -29,9 +29,9 @@ class UserScript {
// The bitmask for valid user script injectable schemes used by URLPattern.
static const int kValidUserScriptSchemes;
- // Check if a file or URL has the user script file extension.
- static bool HasUserScriptFileExtension(const GURL& url);
- static bool HasUserScriptFileExtension(const FilePath& path);
+ // Check if a URL should be treated as a user script and converted to an
+ // extension.
+ static bool IsURLUserScript(const GURL& url, const std::string& mime_type);
// Locations that user scripts can be run inside the document.
enum RunLocation {