Home
last modified time | relevance | path

Searched refs:UserScript (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium/chrome/common/extensions/
Duser_script.cc12 bool UrlMatchesPatterns(const UserScript::PatternList* patterns, in UrlMatchesPatterns()
14 for (UserScript::PatternList::const_iterator pattern = patterns->begin(); in UrlMatchesPatterns()
37 const char UserScript::kFileExtension[] = ".user.js";
40 const int UserScript::kValidUserScriptSchemes =
44 bool UserScript::IsURLUserScript(const GURL& url, in IsURLUserScript()
50 UserScript::File::File(const FilePath& extension_root, in File()
58 UserScript::File::File() {} in File()
60 UserScript::File::~File() {} in ~File()
62 UserScript::UserScript() in UserScript() function in UserScript
67 UserScript::~UserScript() { in ~UserScript()
[all …]
Duser_script_unittest.cc19 UserScript script; in TEST()
38 UserScript script; in TEST()
47 UserScript script; in TEST()
56 UserScript script; in TEST()
65 UserScript script; in TEST()
77 UserScript script; in TEST()
87 UserScript script; in TEST()
125 UserScript script1; in TEST()
126 script1.js_scripts().push_back(UserScript::File( in TEST()
130 script1.css_scripts().push_back(UserScript::File( in TEST()
[all …]
Duser_script.h22 class UserScript {
105 UserScript();
106 ~UserScript();
234 typedef std::vector<UserScript> UserScriptList;
Dextension.h549 const UserScript* script,
690 UserScript* result);
698 void(UserScript::*add_method)(const std::string& glob),
699 UserScript *instance);
Dextension.cc336 UserScript::kValidUserScriptSchemes | URLPattern::SCHEME_CHROMEUI;
708 UserScript* result) { in LoadUserScriptHelper()
724 result->set_run_location(UserScript::DOCUMENT_START); in LoadUserScriptHelper()
726 result->set_run_location(UserScript::DOCUMENT_END); in LoadUserScriptHelper()
728 result->set_run_location(UserScript::DOCUMENT_IDLE); in LoadUserScriptHelper()
771 URLPattern pattern(UserScript::kValidUserScriptSchemes); in LoadUserScriptHelper()
799 error, &UserScript::add_glob, result)) { in LoadUserScriptHelper()
804 error, &UserScript::add_exclude_glob, result)) { in LoadUserScriptHelper()
845 result->js_scripts().push_back(UserScript::File( in LoadUserScriptHelper()
863 result->css_scripts().push_back(UserScript::File( in LoadUserScriptHelper()
[all …]
Dextension_file_util.cc182 const UserScript& script = extension->content_scripts()[i]; in ValidateExtension()
185 const UserScript::File& js_script = script.js_scripts()[j]; in ValidateExtension()
194 const UserScript::File& css_script = script.css_scripts()[j]; in ValidateExtension()
/external/chromium/chrome/browser/extensions/
Duser_script_master.cc52 const base::StringPiece& script_text, UserScript* script) { in ParseMetadataHeader()
109 URLPattern pattern(UserScript::kValidUserScriptSchemes); in ParseMetadataHeader()
116 script->set_run_location(UserScript::DOCUMENT_START); in ParseMetadataHeader()
160 static bool LoadScriptContent(UserScript::File* script_file) { in LoadScriptContent()
197 result->push_back(UserScript()); in LoadScriptsFromDirectory()
198 UserScript& user_script = result->back(); in LoadScriptsFromDirectory()
202 user_script.set_run_location(UserScript::DOCUMENT_END); in LoadScriptsFromDirectory()
207 user_script.js_scripts().push_back(UserScript::File( in LoadScriptsFromDirectory()
209 UserScript::File& script_file = user_script.js_scripts().back(); in LoadScriptsFromDirectory()
220 UserScript& script = lone_scripts->at(i); in LoadLoneScripts()
[all …]
Duser_script_master_unittest.cc122 UserScript script; in TEST_F()
134 UserScript script; in TEST_F()
147 UserScript script; in TEST_F()
160 UserScript script; in TEST_F()
178 UserScript script; in TEST_F()
191 UserScript script; in TEST_F()
205 UserScript script; in TEST_F()
Dconvert_user_script_unittest.cc38 const UserScript& script = extension->content_scripts()[0]; in TEST()
78 const UserScript& script = extension->content_scripts()[0]; in TEST()
Duser_script_master.h76 UserScript* script);
Dextensions_ui.h30 class UserScript; variable
Dconvert_user_script.cc42 UserScript script; in ConvertUserScriptToExtension()
Dcrx_installer.cc272 URLPattern pattern(UserScript::kValidUserScriptSchemes); in AllowInstall()
Dextension_prefs.cc669 UserScript::kValidUserScriptSchemes); in GetGrantedPermissions()
/external/webkit/Source/WebCore/page/
DUserScript.h38 class UserScript {
39 WTF_MAKE_NONCOPYABLE(UserScript); WTF_MAKE_FAST_ALLOCATED;
41 UserScript(const String& source, const KURL& url, in UserScript() function
DUserScriptTypes.h37 class UserScript; variable
39 typedef Vector<OwnPtr<UserScript> > UserScriptVector;
DPageGroup.cpp374 …OwnPtr<UserScript> userScript(new UserScript(source, url, whitelist, blacklist, injectionTime, inj… in addUserScriptToWorld()
DFrame.cpp554 UserScript* script = userScripts[i].get(); in injectUserScriptsForWorld()
/external/chromium/chrome/browser/ui/webui/options/
Dextension_settings_handler.h30 class UserScript; variable
123 const UserScript& script,
/external/chromium/chrome/browser/download/
Ddownload_util.cc330 if (UserScript::IsURLUserScript(download_item.url(), in OpenChromeExtension()
Ddownload_manager.cc277 if (UserScript::IsURLUserScript(info->url(), info->mime_type) || in CheckDownloadUrlDone()
/external/webkit/Source/WebCore/
DGNUmakefile.list.am2284 Source/WebCore/page/UserScript.h \
DChangeLog-2010-01-2933023 worldID. Also updated for changes to UserScript and UserStyleSheet.
33025 * page/UserScript.h:
33822 class UserScript - instantiated at: WebCore/page/PageGroup.cpp:208
33837 * page/UserScript.h:
51628 * page/UserScript.h:
51629 (WebCore::UserScript::UserScript):
51630 (WebCore::UserScript::whitelist):
51631 (WebCore::UserScript::blacklist):
62534 * page/UserScript.h: Added.
62535 (WebCore::UserScript::UserScript):
[all …]
DGNUmakefile.am2295 Source/WebCore/page/UserScript.h \
DWebCore.gypi724 'page/UserScript.h',

12