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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependencies Created 6 years, 10 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 3e4a3e99694f98666f8362f3da9208763b6a81a4..894c6dce6c387c89db1df7714cfef246c91f971d 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -31,6 +31,7 @@
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/defaults.h"
+#include "chrome/browser/devtools/devtools_network_controller.h"
#include "chrome/browser/download/download_prefs.h"
#include "chrome/browser/extensions/api/web_request/web_request_api.h"
#include "chrome/browser/extensions/browser_permissions_policy_delegate.h"
@@ -2418,6 +2419,15 @@ void ChromeContentBrowserClient::ClearCookies(RenderViewHost* rvh) {
// BrowsingDataRemover takes care of deleting itself when done.
}
+void ChromeContentBrowserClient::SetBlockedDomains(
+ content::RenderViewHost* rvh,
+ const std::string& id,
+ const std::vector<std::string>& blocked_domains) {
+ Profile* profile = Profile::FromBrowserContext(
+ rvh->GetSiteInstance()->GetProcess()->GetBrowserContext());
+ DevToolsNetworkController::SetBlockedDomains(profile, id, blocked_domains);
mmenke 2014/03/07 19:38:08 Presumably you're going to need to include a heade
eustas 2014/03/11 12:06:42 I've tried to reduce review scope in this CL. I'll
+}
+
base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() {
return DownloadPrefs::GetDefaultDownloadDirectory();
}

Powered by Google App Engine
This is Rietveld 408576698