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

Unified Diff: extensions/renderer/injection_host.h

Issue 934763003: Refactoring: de-couple Extensions from "script injection System" [render side]:3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_brower_isolated_world_routingid_user_script_1
Patch Set: Created 5 years, 10 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/injection_host.h
diff --git a/extensions/renderer/injection_host.h b/extensions/renderer/injection_host.h
index a142b1db1c70650bb64f2c6850baafc93e8b5548..c4b8dd82f795c31fe02e478357b43335db53477e 100644
--- a/extensions/renderer/injection_host.h
+++ b/extensions/renderer/injection_host.h
@@ -15,7 +15,7 @@ class InjectionHost {
InjectionHost(const HostID& host_id);
virtual ~InjectionHost();
- virtual const std::string& GetContentSecurityPolicy() const = 0;
+ virtual std::string GetContentSecurityPolicy() const = 0;
// The base url for the host.
virtual const GURL& url() const = 0;
@@ -30,6 +30,9 @@ class InjectionHost {
int tab_id,
bool is_declarative) const = 0;
+ // Returns whether the injection host is gone.
+ virtual bool IsGone() const = 0;
+
const HostID& id() const { return id_; }
private:
// The ID of the host.

Powered by Google App Engine
This is Rietveld 408576698