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

Unified Diff: content/public/browser/resource_context.h

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 6 years, 8 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: 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

Powered by Google App Engine
This is Rietveld 408576698