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

Side by Side Diff: chrome/service/net/service_url_request_context.cc

Issue 12463021: Stop sending Accept-Charset HTTP header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r188089) Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/net/service_url_request_context.h" 5 #include "chrome/service/net/service_url_request_context.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX)
8 #include <sys/utsname.h> 8 #include <sys/utsname.h>
9 #endif 9 #endif
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 session_params.http_server_properties = http_server_properties(); 132 session_params.http_server_properties = http_server_properties();
133 scoped_refptr<net::HttpNetworkSession> network_session( 133 scoped_refptr<net::HttpNetworkSession> network_session(
134 new net::HttpNetworkSession(session_params)); 134 new net::HttpNetworkSession(session_params));
135 storage_.set_http_transaction_factory( 135 storage_.set_http_transaction_factory(
136 new net::HttpCache( 136 new net::HttpCache(
137 network_session, 137 network_session,
138 net::HttpCache::DefaultBackend::InMemory(0))); 138 net::HttpCache::DefaultBackend::InMemory(0)));
139 // In-memory cookie store. 139 // In-memory cookie store.
140 storage_.set_cookie_store(new net::CookieMonster(NULL, NULL)); 140 storage_.set_cookie_store(new net::CookieMonster(NULL, NULL));
141 storage_.set_http_user_agent_settings(new net::StaticHttpUserAgentSettings( 141 storage_.set_http_user_agent_settings(new net::StaticHttpUserAgentSettings(
142 "en-us,fr", "iso-8859-1,*,utf-8", user_agent)); 142 "en-us,fr", user_agent));
143 } 143 }
144 144
145 ServiceURLRequestContext::~ServiceURLRequestContext() { 145 ServiceURLRequestContext::~ServiceURLRequestContext() {
146 } 146 }
147 147
148 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter() 148 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter()
149 : network_task_runner_( 149 : network_task_runner_(
150 g_service_process->io_thread()->message_loop_proxy()) { 150 g_service_process->io_thread()->message_loop_proxy()) {
151 // Build the default user agent. 151 // Build the default user agent.
152 user_agent_ = MakeUserAgentForServiceProcess(); 152 user_agent_ = MakeUserAgentForServiceProcess();
(...skipping 15 matching lines...) Expand all
168 proxy_config_service_.release())); 168 proxy_config_service_.release()));
169 return url_request_context_.get(); 169 return url_request_context_.get();
170 } 170 }
171 171
172 scoped_refptr<base::SingleThreadTaskRunner> 172 scoped_refptr<base::SingleThreadTaskRunner>
173 ServiceURLRequestContextGetter::GetNetworkTaskRunner() const { 173 ServiceURLRequestContextGetter::GetNetworkTaskRunner() const {
174 return network_task_runner_; 174 return network_task_runner_;
175 } 175 }
176 176
177 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {} 177 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {}
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/device_management_service.cc ('k') | content/shell/shell_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698