Home
last modified time | relevance | path

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

12

/external/chromium_org/extensions/common/
Duser_script.cc39 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 …]
Duser_script_unittest.cc22 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 …]
Duser_script.h25 class UserScript {
110 UserScript();
111 ~UserScript();
274 typedef std::vector<UserScript> UserScriptList;
/external/chromium_org/extensions/renderer/
Duser_script_scheduler.cc49 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 …]
Dscript_injection.h61 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_;
Dscript_injection.cc73 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 …]
Duser_script_slave.cc155 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()
Duser_script_scheduler.h82 UserScript::RunLocation current_location_;
88 std::map<UserScript::RunLocation, ExecutionQueue> pending_execution_map_;
Duser_script_slave.h71 void InjectScripts(blink::WebFrame* frame, UserScript::RunLocation location);
85 UserScript::RunLocation location,
Dextension_helper.cc171 frame, UserScript::DOCUMENT_END); in DidFinishDocumentLoad()
186 frame, UserScript::DOCUMENT_START); in DidCreateDocumentElement()
/external/chromium_org/chrome/browser/extensions/
Duser_script_master_unittest.cc119 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 …]
Dconvert_user_script_unittest.cc65 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()
Duser_script_master.cc61 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 …]
Dconvert_user_script.cc47 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()
Dscript_executor.h95 UserScript::RunLocation run_at,
Dactive_tab_permission_granter.cc58 URLPattern pattern(UserScript::ValidUserScriptSchemes()); in GrantIfRequested()
Duser_script_master.h79 UserScript* script);
Dscript_executor.cc124 UserScript::RunLocation run_at, in ExecuteScript()
Dcrx_installer.cc403 URLPattern pattern(UserScript::ValidUserScriptSchemes()); in AllowInstall()
/external/chromium_org/chrome/common/extensions/manifest_handlers/
Dcontent_scripts_handler.cc44 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/
Dexecute_code_function.cc133 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/
Ddownload_crx_util.cc107 if (extensions::UserScript::IsURLUserScript(download_item.GetURL(), in OpenChromeExtension()
125 extensions::UserScript::IsURLUserScript(download_item.GetURL(), in IsExtensionDownload()
/external/chromium_org/extensions/common/permissions/
Dpermissions_data.h29 class UserScript; variable
/external/chromium_org/chrome/browser/chromeos/accessibility/
Daccessibility_manager.cc141 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/
Dchrome_resource_dispatcher_host_delegate.cc543 return extensions::UserScript::IsURLUserScript(url, mime_type); in ShouldForceDownloadResource()

12