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

Unified Diff: extensions/browser/declarative_user_script_master.h

Issue 2227193002: Make UserScript non-copyable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: uplaod with base 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
Index: extensions/browser/declarative_user_script_master.h
diff --git a/extensions/browser/declarative_user_script_master.h b/extensions/browser/declarative_user_script_master.h
index a34fee1ea207629cb62ff82d13b017fc24dd726e..52ca7623621f972e93fb3def253e83994e84b2d4 100644
--- a/extensions/browser/declarative_user_script_master.h
+++ b/extensions/browser/declarative_user_script_master.h
@@ -18,6 +18,7 @@ class BrowserContext;
namespace extensions {
+class BrowserUserScript;
class UserScript;
class UserScriptLoader;
@@ -35,19 +36,19 @@ class DeclarativeUserScriptMaster {
// Adds script to shared memory region. This may not happen right away if a
// script load is in progress.
- void AddScript(const UserScript& script);
+ void AddScript(std::unique_ptr<BrowserUserScript> script);
// Adds a set of scripts to shared meomory region. The fetch of the content
// of the script on WebUI requires to start URL request to the associated
// render specified by |render_process_id, render_view_id|.
// This may not happen right away if a script load is in progress.
- void AddScripts(const std::vector<UserScript>& scripts,
+ void AddScripts(std::vector<std::unique_ptr<BrowserUserScript>>& scripts,
int render_process_id,
int render_view_id);
// Removes script from shared memory region. This may not happen right away if
// a script load is in progress.
- void RemoveScript(const UserScript& script);
+ void RemoveScript(const UserScriptIDPair& script);
// Removes a set of scripts from shared memory region. This may not happen
// right away if a script load is in progress.

Powered by Google App Engine
This is Rietveld 408576698