Chromium Code Reviews| 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(); |