Home
last modified time | relevance | path

Searched refs:UserScript (Results 1 – 25 of 47) 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
76 UserScript::~UserScript() { in ~UserScript()
79 void UserScript::add_url_pattern(const URLPattern& pattern) { in add_url_pattern()
83 void UserScript::add_exclude_url_pattern(const URLPattern& pattern) { in add_exclude_url_pattern()
[all …]
Duser_script_unittest.cc21 UserScript script; in TEST()
40 UserScript script; in TEST()
49 UserScript script; in TEST()
58 UserScript script; in TEST()
68 UserScript script; in TEST()
79 UserScript script; in TEST()
88 UserScript script; in TEST()
104 UserScript script; in TEST()
118 UserScript script; in TEST()
133 UserScript script; in TEST()
[all …]
Duser_script.h24 class UserScript {
107 UserScript();
108 ~UserScript();
256 typedef std::vector<UserScript> UserScriptList;
/external/chromium_org/chrome/renderer/extensions/
Duser_script_scheduler.cc48 current_location_(UserScript::UNDEFINED), in UserScriptScheduler()
51 for (int i = UserScript::UNDEFINED; i < UserScript::RUN_LOCATION_LAST; ++i) { in UserScriptScheduler()
52 pending_execution_map_[static_cast<UserScript::RunLocation>(i)] = in UserScriptScheduler()
62 UserScript::RunLocation run_at = in ExecuteCode()
63 static_cast<UserScript::RunLocation>(params.run_at); in ExecuteCode()
75 current_location_ = UserScript::DOCUMENT_START; in DidCreateDocumentElement()
80 current_location_ = UserScript::DOCUMENT_END; in DidFinishDocumentLoad()
90 current_location_ = UserScript::DOCUMENT_IDLE; in DidFinishLoad()
100 current_location_ = UserScript::UNDEFINED; in DidStartProvisionalLoad()
103 std::map<UserScript::RunLocation, ExecutionQueue>::iterator itr = in DidStartProvisionalLoad()
[all …]
Duser_script_slave.cc176 scripts_.push_back(new UserScript()); in UpdateScripts()
177 UserScript* script = scripts_.back(); in UpdateScripts()
209 UserScript* script = scripts_[i]; in UpdateScripts()
227 const UserScript::File& file = scripts_[i]->css_scripts()[j]; in UpdateScripts()
258 UserScript::RunLocation location) { in InjectScripts()
275 UserScript* script = scripts_[i]; in InjectScripts()
303 if (location == UserScript::DOCUMENT_START) in InjectScripts()
309 UserScript::File &file = script->js_scripts()[j]; in InjectScripts()
363 if (location == UserScript::DOCUMENT_START) { in InjectScripts()
368 } else if (location == UserScript::DOCUMENT_END) { in InjectScripts()
[all …]
Duser_script_slave.h51 void InjectScripts(blink::WebFrame* frame, UserScript::RunLocation location);
74 std::vector<UserScript*> scripts_;
75 STLElementDeleter<std::vector<UserScript*> > script_deleter_;
Duser_script_scheduler.h82 UserScript::RunLocation current_location_;
88 std::map<UserScript::RunLocation, ExecutionQueue> pending_execution_map_;
Drenderer_permissions_policy_delegate.h25 const UserScript* script,
Drenderer_permissions_policy_delegate.cc31 const UserScript* script, in CanExecuteScriptOnPage()
/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;
/external/chromium_org/chrome/browser/extensions/
Duser_script_master_unittest.cc121 UserScript script; in TEST_F()
133 UserScript script; in TEST_F()
146 UserScript script; in TEST_F()
163 UserScript script; in TEST_F()
177 UserScript script; in TEST_F()
190 UserScript script; in TEST_F()
204 UserScript script; in TEST_F()
222 UserScript script; in TEST_F()
240 UserScript user_script; in TEST_F()
241 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.cc65 const base::StringPiece& script_text, UserScript* script) { in ParseMetadataHeader()
124 URLPattern pattern(UserScript::ValidUserScriptSchemes()); in ParseMetadataHeader()
129 URLPattern exclude(UserScript::ValidUserScriptSchemes()); in ParseMetadataHeader()
135 script->set_run_location(UserScript::DOCUMENT_START); in ParseMetadataHeader()
137 script->set_run_location(UserScript::DOCUMENT_END); in ParseMetadataHeader()
139 script->set_run_location(UserScript::DOCUMENT_IDLE); in ParseMetadataHeader()
187 static bool LoadScriptContent(UserScript::File* script_file, in LoadScriptContent()
237 UserScript& script = user_scripts->at(i); in LoadUserScripts()
241 UserScript::File& script_file = script.js_scripts()[k]; in LoadUserScripts()
246 UserScript::File& script_file = script.css_scripts()[k]; in LoadUserScripts()
[all …]
Dconvert_user_script.cc47 UserScript script; in ConvertUserScriptToExtension()
146 if (script.run_location() == UserScript::DOCUMENT_START) in ConvertUserScriptToExtension()
148 else if (script.run_location() == UserScript::DOCUMENT_END) in ConvertUserScriptToExtension()
150 else if (script.run_location() == UserScript::DOCUMENT_IDLE) in ConvertUserScriptToExtension()
Dbrowser_permissions_policy_delegate.h23 const UserScript* script,
/external/chromium_org/chrome/common/extensions/manifest_handlers/
Dcontent_scripts_handler.cc40 void(UserScript::*add_method)(const std::string& glob), in LoadGlobsHelper()
41 UserScript* instance) { in LoadGlobsHelper()
77 UserScript* result) { in LoadUserScriptFromDictionary()
89 result->set_run_location(UserScript::DOCUMENT_START); in LoadUserScriptFromDictionary()
91 result->set_run_location(UserScript::DOCUMENT_END); in LoadUserScriptFromDictionary()
93 result->set_run_location(UserScript::DOCUMENT_IDLE); in LoadUserScriptFromDictionary()
139 URLPattern pattern(UserScript::ValidUserScriptSchemes( in LoadUserScriptFromDictionary()
196 int valid_schemes = UserScript::ValidUserScriptSchemes( in LoadUserScriptFromDictionary()
215 error, &UserScript::add_glob, result)) { in LoadUserScriptFromDictionary()
220 error, &UserScript::add_exclude_glob, result)) { in LoadUserScriptFromDictionary()
[all …]
/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()
/external/chromium_org/chrome/browser/extensions/api/
Dexecute_code_function.cc127 UserScript::RunLocation run_at = in Execute()
128 UserScript::UNDEFINED; in Execute()
132 run_at = UserScript::DOCUMENT_IDLE; in Execute()
135 run_at = UserScript::DOCUMENT_START; in Execute()
138 run_at = UserScript::DOCUMENT_END; in Execute()
141 CHECK_NE(UserScript::UNDEFINED, run_at); in Execute()
/external/chromium_org/extensions/common/permissions/
Dpermissions_data.h27 class UserScript; variable
49 const UserScript* script,
164 const UserScript* script,
/external/chromium_org/chrome/browser/download/
Ddownload_crx_util.cc96 if (extensions::UserScript::IsURLUserScript(download_item.GetURL(), in OpenChromeExtension()
122 extensions::UserScript::IsURLUserScript(download_item.GetURL(), in IsExtensionDownload()
/external/chromium/chrome/browser/ui/webui/options/
Dextension_settings_handler.h30 class UserScript; variable
123 const UserScript& script,

12