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. |