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

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

Issue 2901383006: Replace URLRequestContextBuilder::HttpNetworkSessionParams (Closed)
Patch Set: Merge.... Created 3 years, 7 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 | « no previous file | content/network/network_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f8479ef3d55b75cb6d92c1c40488b8204e0e64d0..0f4c68aa43e1e5024bc9acdcd3ce5933f79df9c3 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -39,6 +39,7 @@
#include "net/http/http_auth_handler_factory.h"
#include "net/http/http_auth_preferences.h"
#include "net/http/http_cache.h"
+#include "net/http/http_network_session.h"
#include "net/http/http_stream_factory.h"
#include "net/log/net_log.h"
#include "net/net_features.h"
@@ -83,7 +84,7 @@ void ApplyCmdlineOverridesToHostResolver(
}
void ApplyCmdlineOverridesToNetworkSessionParams(
- net::URLRequestContextBuilder::HttpNetworkSessionParams* params) {
+ net::HttpNetworkSession::Params* params) {
int value;
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
@@ -255,8 +256,7 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
builder.SetFileTaskRunner(
BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE));
- net::URLRequestContextBuilder::HttpNetworkSessionParams
- network_session_params;
+ net::HttpNetworkSession::Params network_session_params;
ApplyCmdlineOverridesToNetworkSessionParams(&network_session_params);
builder.set_http_network_session_params(network_session_params);
builder.SetSpdyAndQuicEnabled(true, false);
« no previous file with comments | « no previous file | content/network/network_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698