Home | History | Annotate | Download | only in extensions

Lines Matching defs:scripts

149   // The master went away, so these new scripts aren't useful anymore.
183 // Clear the list. We will populate it with the scripts found in script_dir.
186 // Find all the scripts in |script_dir|.
188 // Create the "<Profile>/User Scripts" directory if it doesn't exist
200 // We default standalone user scripts to document-end for better
234 // Pickle user scripts and return pointer to the shared memory.
235 static base::SharedMemory* Serialize(const UserScriptList& scripts) {
237 pickle.WriteSize(scripts.size());
238 for (size_t i = 0; i < scripts.size(); i++) {
239 const UserScript& script = scripts[i];
244 // Write scripts as 'data' so that we can read it out in the slave without
271 UserScriptList scripts;
272 // Get list of user scripts.
274 LoadScriptsFromDirectory(script_dir, &scripts);
278 // Merge with the explicit scripts
279 scripts.reserve(scripts.size() + lone_script.size());
280 scripts.insert(scripts.end(),
283 // Scripts now contains list of up-to-date scripts. Load the content in the
285 // back even if no scripts ware found to balance the AddRef/Release calls
289 this, &ScriptReloader::NotifyMaster, Serialize(scripts)));
319 // notifying about these scripts and instead just immediately rescan.
325 // We've got scripts ready to go.
344 // Add any content scripts inside the extension.
348 const UserScriptList& scripts = extension->content_scripts();
349 for (UserScriptList::const_iterator iter = scripts.begin();
350 iter != scripts.end(); ++iter) {
359 // Remove any content scripts.
371 // TODO(aa): Do we want to do something smarter for the scripts that have