/external/chromium_org/extensions/common/ |
D | user_script.cc | 39 const char UserScript::kFileExtension[] = ".user.js"; 41 bool UserScript::IsURLUserScript(const GURL& url, in IsURLUserScript() 48 int UserScript::ValidUserScriptSchemes(bool canExecuteScriptEverywhere) { in ValidUserScriptSchemes() 59 UserScript::File::File(const base::FilePath& extension_root, in File() 67 UserScript::File::File() {} in File() 69 UserScript::File::~File() {} in ~File() 71 UserScript::UserScript() in UserScript() function in extensions::UserScript 79 UserScript::~UserScript() { in ~UserScript() 82 void UserScript::add_url_pattern(const URLPattern& pattern) { in add_url_pattern() 86 void UserScript::add_exclude_url_pattern(const URLPattern& pattern) { in add_exclude_url_pattern() [all …]
|
D | user_script_unittest.cc | 22 UserScript script; in TEST() 41 UserScript script; in TEST() 50 UserScript script; in TEST() 59 UserScript script; in TEST() 69 UserScript script; in TEST() 80 UserScript script; in TEST() 89 UserScript script; in TEST() 105 UserScript script; in TEST() 119 UserScript script; in TEST() 134 UserScript script; in TEST() [all …]
|
D | user_script.h | 25 class UserScript { 110 UserScript(); 111 ~UserScript(); 274 typedef std::vector<UserScript> UserScriptList;
|
/external/chromium_org/extensions/renderer/ |
D | user_script_scheduler.cc | 49 current_location_(UserScript::UNDEFINED), in UserScriptScheduler() 52 for (int i = UserScript::UNDEFINED; i < UserScript::RUN_LOCATION_LAST; ++i) { in UserScriptScheduler() 53 pending_execution_map_[static_cast<UserScript::RunLocation>(i)] = in UserScriptScheduler() 63 UserScript::RunLocation run_at = in ExecuteCode() 64 static_cast<UserScript::RunLocation>(params.run_at); in ExecuteCode() 76 current_location_ = UserScript::DOCUMENT_START; in DidCreateDocumentElement() 81 current_location_ = UserScript::DOCUMENT_END; in DidFinishDocumentLoad() 91 current_location_ = UserScript::DOCUMENT_IDLE; in DidFinishLoad() 101 current_location_ = UserScript::UNDEFINED; in DidStartProvisionalLoad() 104 std::map<UserScript::RunLocation, ExecutionQueue>::iterator itr = in DidStartProvisionalLoad() [all …]
|
D | script_injection.h | 61 ScriptInjection(scoped_ptr<UserScript> script, 71 UserScript::RunLocation location, 90 void SetScript(scoped_ptr<UserScript> script); 93 const UserScript* script() { return script_.get(); } in script() 102 UserScript::RunLocation run_location, 107 bool ShouldInjectJS(UserScript::RunLocation run_location) const; 108 bool ShouldInjectCSS(UserScript::RunLocation run_location) const; 113 UserScript::RunLocation run_location, 123 scoped_ptr<UserScript> script_;
|
D | script_injection.cc | 73 UserScript::RunLocation run_location, 88 UserScript::RunLocation run_location; 96 UserScript::RunLocation run_location, in PendingInjection() 119 scoped_ptr<UserScript> script, in ScriptInjection() 132 UserScript::RunLocation run_location, in InjectIfAllowed() 233 void ScriptInjection::SetScript(scoped_ptr<UserScript> script) { in SetScript() 238 UserScript::RunLocation run_location, in WantsToRun() 274 UserScript::RunLocation run_location, in Inject() 287 bool ScriptInjection::ShouldInjectJS(UserScript::RunLocation run_location) in ShouldInjectJS() 293 bool ScriptInjection::ShouldInjectCSS(UserScript::RunLocation run_location) in ShouldInjectCSS() [all …]
|
D | user_script_slave.cc | 155 scoped_ptr<UserScript> script(new UserScript()); in UpdateScripts() 208 UserScript::RunLocation location) { in InjectScripts() 238 LogScriptsRun(frame, UserScript::RUN_DEFERRED, run_info); in OnContentScriptGrantedPermission() 255 UserScript::RunLocation location, in LogScriptsRun() 269 case UserScript::DOCUMENT_START: in LogScriptsRun() 278 case UserScript::DOCUMENT_END: in LogScriptsRun() 283 case UserScript::DOCUMENT_IDLE: in LogScriptsRun() 289 case UserScript::RUN_DEFERRED: in LogScriptsRun() 292 case UserScript::UNDEFINED: in LogScriptsRun() 293 case UserScript::RUN_LOCATION_LAST: in LogScriptsRun()
|
D | user_script_scheduler.h | 82 UserScript::RunLocation current_location_; 88 std::map<UserScript::RunLocation, ExecutionQueue> pending_execution_map_;
|
D | user_script_slave.h | 71 void InjectScripts(blink::WebFrame* frame, UserScript::RunLocation location); 85 UserScript::RunLocation location,
|
D | extension_helper.cc | 171 frame, UserScript::DOCUMENT_END); in DidFinishDocumentLoad() 186 frame, UserScript::DOCUMENT_START); in DidCreateDocumentElement()
|
/external/chromium_org/chrome/browser/extensions/ |
D | user_script_master_unittest.cc | 119 UserScript script; in TEST_F() 131 UserScript script; in TEST_F() 144 UserScript script; in TEST_F() 161 UserScript script; in TEST_F() 175 UserScript script; in TEST_F() 188 UserScript script; in TEST_F() 202 UserScript script; in TEST_F() 220 UserScript script; in TEST_F() 238 UserScript user_script; in TEST_F() 239 user_script.js_scripts().push_back(UserScript::File( in TEST_F() [all …]
|
D | convert_user_script_unittest.cc | 65 const UserScript& script = in TEST_F() 67 EXPECT_EQ(UserScript::DOCUMENT_IDLE, script.run_location()); in TEST_F() 118 const UserScript& script = in TEST_F() 185 const UserScript& script = in TEST_F() 187 EXPECT_EQ(UserScript::DOCUMENT_START, script.run_location()); in TEST_F() 220 const UserScript& script = in TEST_F() 222 EXPECT_EQ(UserScript::DOCUMENT_END, script.run_location()); in TEST_F() 256 const UserScript& script = in TEST_F() 258 EXPECT_EQ(UserScript::DOCUMENT_IDLE, script.run_location()); in TEST_F()
|
D | user_script_master.cc | 61 const base::StringPiece& script_text, UserScript* script) { in ParseMetadataHeader() 120 URLPattern pattern(UserScript::ValidUserScriptSchemes()); in ParseMetadataHeader() 125 URLPattern exclude(UserScript::ValidUserScriptSchemes()); in ParseMetadataHeader() 131 script->set_run_location(UserScript::DOCUMENT_START); in ParseMetadataHeader() 133 script->set_run_location(UserScript::DOCUMENT_END); in ParseMetadataHeader() 135 script->set_run_location(UserScript::DOCUMENT_IDLE); in ParseMetadataHeader() 197 UserScript::File* script_file, in LoadScriptContent() 256 UserScript& script = user_scripts->at(i); in LoadUserScripts() 260 UserScript::File& script_file = script.js_scripts()[k]; in LoadUserScripts() 266 UserScript::File& script_file = script.css_scripts()[k]; in LoadUserScripts() [all …]
|
D | convert_user_script.cc | 47 UserScript script; in ConvertUserScriptToExtension() 147 if (script.run_location() == UserScript::DOCUMENT_START) in ConvertUserScriptToExtension() 149 else if (script.run_location() == UserScript::DOCUMENT_END) in ConvertUserScriptToExtension() 151 else if (script.run_location() == UserScript::DOCUMENT_IDLE) in ConvertUserScriptToExtension()
|
D | script_executor.h | 95 UserScript::RunLocation run_at,
|
D | active_tab_permission_granter.cc | 58 URLPattern pattern(UserScript::ValidUserScriptSchemes()); in GrantIfRequested()
|
D | user_script_master.h | 79 UserScript* script);
|
D | script_executor.cc | 124 UserScript::RunLocation run_at, in ExecuteScript()
|
D | crx_installer.cc | 403 URLPattern pattern(UserScript::ValidUserScriptSchemes()); in AllowInstall()
|
/external/chromium_org/chrome/common/extensions/manifest_handlers/ |
D | content_scripts_handler.cc | 44 void(UserScript::*add_method)(const std::string& glob), in LoadGlobsHelper() 45 UserScript* instance) { in LoadGlobsHelper() 81 UserScript* result) { in LoadUserScriptFromDictionary() 93 result->set_run_location(UserScript::DOCUMENT_START); in LoadUserScriptFromDictionary() 95 result->set_run_location(UserScript::DOCUMENT_END); in LoadUserScriptFromDictionary() 97 result->set_run_location(UserScript::DOCUMENT_IDLE); in LoadUserScriptFromDictionary() 155 URLPattern pattern(UserScript::ValidUserScriptSchemes( in LoadUserScriptFromDictionary() 212 int valid_schemes = UserScript::ValidUserScriptSchemes( in LoadUserScriptFromDictionary() 231 error, &UserScript::add_glob, result)) { in LoadUserScriptFromDictionary() 236 error, &UserScript::add_exclude_glob, result)) { in LoadUserScriptFromDictionary() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/ |
D | execute_code_function.cc | 133 UserScript::RunLocation run_at = in Execute() 134 UserScript::UNDEFINED; in Execute() 138 run_at = UserScript::DOCUMENT_IDLE; in Execute() 141 run_at = UserScript::DOCUMENT_START; in Execute() 144 run_at = UserScript::DOCUMENT_END; in Execute() 147 CHECK_NE(UserScript::UNDEFINED, run_at); in Execute()
|
/external/chromium_org/chrome/browser/download/ |
D | download_crx_util.cc | 107 if (extensions::UserScript::IsURLUserScript(download_item.GetURL(), in OpenChromeExtension() 125 extensions::UserScript::IsURLUserScript(download_item.GetURL(), in IsExtensionDownload()
|
/external/chromium_org/extensions/common/permissions/ |
D | permissions_data.h | 29 class UserScript; variable
|
/external/chromium_org/chrome/browser/chromeos/accessibility/ |
D | accessibility_manager.cc | 141 params.run_at = extensions::UserScript::DOCUMENT_IDLE; in OnFileLoaded() 209 params.run_at = extensions::UserScript::DOCUMENT_IDLE; in InjectChromeVoxContentScript() 224 const extensions::UserScript& script = content_scripts[i]; in InjectChromeVoxContentScript() 226 const extensions::UserScript::File &file = script.js_scripts()[j]; in InjectChromeVoxContentScript()
|
/external/chromium_org/chrome/browser/renderer_host/ |
D | chrome_resource_dispatcher_host_delegate.cc | 543 return extensions::UserScript::IsURLUserScript(url, mime_type); in ShouldForceDownloadResource()
|