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

Unified Diff: extensions/renderer/user_script_injector.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/renderer/user_script_injector.h
diff --git a/extensions/renderer/user_script_injector.h b/extensions/renderer/user_script_injector.h
index b62995a107a8a6fe543c3b235fa6b35dda104064..a913e9340e568a09c1f52b5950e450d08018644c 100644
--- a/extensions/renderer/user_script_injector.h
+++ b/extensions/renderer/user_script_injector.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/scoped_observer.h"
#include "extensions/common/user_script.h"
+#include "extensions/renderer/renderer_user_script.h"
#include "extensions/renderer/script_injection.h"
#include "extensions/renderer/user_script_set.h"
@@ -26,7 +27,7 @@ namespace extensions {
class UserScriptInjector : public ScriptInjector,
public UserScriptSet::Observer {
public:
- UserScriptInjector(const UserScript* user_script,
+ UserScriptInjector(const RendererUserScript* user_script,
UserScriptSet* user_script_set,
bool is_declarative);
~UserScriptInjector() override;
@@ -35,7 +36,7 @@ class UserScriptInjector : public ScriptInjector,
// UserScriptSet::Observer implementation.
void OnUserScriptsUpdated(
const std::set<HostID>& changed_hosts,
- const std::vector<std::unique_ptr<UserScript>>& scripts) override;
+ const std::vector<std::unique_ptr<RendererUserScript>>& scripts) override;
// ScriptInjector implementation.
UserScript::InjectionType script_type() const override;
@@ -62,7 +63,7 @@ class UserScriptInjector : public ScriptInjector,
// The associated user script. Owned by the UserScriptInjector that created
// this object.
- const UserScript* script_;
+ const RendererUserScript* script_;
// The id of the associated user script. We cache this because when we update
// the |script_| associated with this injection, the old referance may be

Powered by Google App Engine
This is Rietveld 408576698