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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 557733002: [Android WebView] Use NetLog for providing full request headers to DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 6 years, 3 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: android_webview/browser/net/aw_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index 6e39cd79cce587003a430172276bbcd81324d69c..5ef1f941162dbd0c297ae5ae1e95a6ff5d1d755c 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -27,6 +27,7 @@
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
#include "net/base/cache_type.h"
+#include "net/base/net_log.h"
#include "net/cookies/cookie_store.h"
#include "net/dns/mapped_host_resolver.h"
#include "net/http/http_cache.h"
@@ -205,6 +206,8 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
}
builder.set_accept_language(net::HttpUtil::GenerateAcceptLanguageHeader(
AwContentBrowserClient::GetAcceptLangsImpl()));
+ net_log_.reset(new net::NetLog());
+ builder.set_net_log(net_log_.get());
ApplyCmdlineOverridesToURLRequestContextBuilder(&builder);
url_request_context_.reset(builder.Build());
@@ -276,4 +279,8 @@ AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const {
return data_reduction_proxy_auth_request_handler_.get();
}
+net::NetLog* AwURLRequestContextGetter::GetNetLog() const {
+ return net_log_.get();
boliu 2014/09/09 15:41:40 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::I
mnaganov (inactive) 2014/09/09 16:01:17 Correct, this runs on the IO thread. Although, at
+}
+
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698