Index: content/public/browser/resource_context.h |
diff --git a/content/public/browser/resource_context.h b/content/public/browser/resource_context.h |
index 58eb298987bce1cfb5251d125b6a50a2ebda56a3..81b6044ad62368979b00d6ea1cb603c63aa19035 100644 |
--- a/content/public/browser/resource_context.h |
+++ b/content/public/browser/resource_context.h |
@@ -91,6 +91,12 @@ class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { |
// fixed. |
typedef base::Callback<std::string()> SaltCallback; |
virtual SaltCallback GetMediaDeviceIDSalt(); |
+ |
+ // Enables / disables network outage emulation. |
+ // |client_id| should be DevToolsAgentHost GUID. |
+ virtual void SetNetworkState( |
+ const std::string& client_id, |
+ bool offline) = 0; |
}; |
} // namespace content |