diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 22:44:21 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 22:44:21 +0000 |
commit | a72f5f32c228dd262f7c57546b4cc39c95860c03 (patch) | |
tree | 1741a93170a48fcda4a252eb377a20b48f960f2f /chrome/browser/extensions/user_script_master.h | |
parent | 6ebdd17b6b90b0bba9363098987712d7770e89ef (diff) | |
download | chromium_src-a72f5f32c228dd262f7c57546b4cc39c95860c03.zip chromium_src-a72f5f32c228dd262f7c57546b4cc39c95860c03.tar.gz chromium_src-a72f5f32c228dd262f7c57546b4cc39c95860c03.tar.bz2 |
Optionally support URLPatterns in standalone user
scripts via the @match declaration.
In the future, maybe @include will be deprecated
and result in a warning.
Review URL: http://codereview.chromium.org/20127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/user_script_master.h')
-rw-r--r-- | chrome/browser/extensions/user_script_master.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h index 8969281..f156180 100644 --- a/chrome/browser/extensions/user_script_master.h +++ b/chrome/browser/extensions/user_script_master.h @@ -57,6 +57,9 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>, FRIEND_TEST(UserScriptMasterTest, Parse1); FRIEND_TEST(UserScriptMasterTest, Parse2); FRIEND_TEST(UserScriptMasterTest, Parse3); + FRIEND_TEST(UserScriptMasterTest, Parse4); + FRIEND_TEST(UserScriptMasterTest, Parse5); + FRIEND_TEST(UserScriptMasterTest, Parse6); // We reload user scripts on the file thread to prevent blocking the UI. // ScriptReloader lives on the file thread and does the reload @@ -68,7 +71,7 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>, : public base::RefCounted<UserScriptMaster::ScriptReloader> { public: // Parses the includes out of |script| and returns them in |includes|. - static void ParseMetadataHeader(const StringPiece& script_text, + static bool ParseMetadataHeader(const StringPiece& script_text, UserScript* script); ScriptReloader(UserScriptMaster* master) |