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

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

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit 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
« no previous file with comments | « content/common/devtools_messages.h ('k') | content/renderer/devtools/devtools_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index ac40ae2cd57e1655844c604f5a40a7442db8f6e2..a57d72a153dda7eeb6a3ab554e2a03d1ed54a7c3 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -539,6 +539,12 @@ class CONTENT_EXPORT ContentBrowserClient {
// Clears browser cookies.
virtual void ClearCookies(RenderViewHost* rvh) {}
+ // Disables / reenables network. |id| should be DevToolsAgentHost GUID.
+ virtual void DisableNetwork(
jochen (gone - plz use gerrit) 2014/04/23 09:42:07 Can we come up with a more descriptive name? It's
eustas 2014/04/23 12:33:08 Surely, but I got stuck choosing name... Here are
jochen (gone - plz use gerrit) 2014/04/23 12:39:29 I think I like that one. Or SetNetworkState() or
jam 2014/04/23 19:48:30 +1: ContentBrowserClient is a last resort embedder
+ RenderViewHost* rvh,
+ const std::string& id,
jochen (gone - plz use gerrit) 2014/04/23 09:42:07 maybe devtools_client_id?
eustas 2014/04/23 12:33:08 devtools_client_id would be confusing. For now I'
+ bool disable) {}
+
// Returns the default download directory.
// This can be called on any thread.
virtual base::FilePath GetDefaultDownloadDirectory();
« no previous file with comments | « content/common/devtools_messages.h ('k') | content/renderer/devtools/devtools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698