Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: extensions/browser/web_ui_user_script_loader.h

Issue 2227193002: Make UserScript non-copyable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | extensions/browser/web_ui_user_script_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/web_ui_user_script_loader.h
diff --git a/extensions/browser/web_ui_user_script_loader.h b/extensions/browser/web_ui_user_script_loader.h
index ec34b327b618013f32db0615ef824da81a7b881a..649430793601f1f43164fc4e50ba642c61172b5c 100644
--- a/extensions/browser/web_ui_user_script_loader.h
+++ b/extensions/browser/web_ui_user_script_loader.h
@@ -32,7 +32,7 @@ class WebUIUserScriptLoader : public extensions::UserScriptLoader {
using UserScriptRenderInfoMap = std::map<int, UserScriptRenderInfo>;
// UserScriptLoader:
- void AddScripts(const extensions::UserScriptList& scripts,
+ void AddScripts(std::unique_ptr<extensions::UserScriptList> scripts,
int render_process_id,
int render_frame_id) override;
void LoadScripts(std::unique_ptr<extensions::UserScriptList> user_scripts,
@@ -49,10 +49,11 @@ class WebUIUserScriptLoader : public extensions::UserScriptLoader {
void OnWebUIURLFetchComplete();
// Creates WebUiURLFetchers for the given |script_files|.
- void CreateWebUIURLFetchers(extensions::UserScript::FileList* script_files,
- content::BrowserContext* browser_context,
- int render_process_id,
- int render_frame_id);
+ void CreateWebUIURLFetchers(
+ const extensions::UserScript::FileList& script_files,
+ content::BrowserContext* browser_context,
+ int render_process_id,
+ int render_frame_id);
// Caches the render info of script from WebUI when AddScripts is called.
// When starting to load the script, we look up this map to retrieve the
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | extensions/browser/web_ui_user_script_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698