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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 286013002: Added alternative configuration for the data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK fix Created 6 years, 6 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
« no previous file with comments | « chrome/browser/net/spdyproxy/proxy_advisor.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 .get()); 477 .get());
478 net::HttpNetworkSession::Params network_session_params; 478 net::HttpNetworkSession::Params network_session_params;
479 PopulateNetworkSessionParams(profile_params, &network_session_params); 479 PopulateNetworkSessionParams(profile_params, &network_session_params);
480 net::HttpCache* main_cache = new net::HttpCache( 480 net::HttpCache* main_cache = new net::HttpCache(
481 network_session_params, main_backend); 481 network_session_params, main_backend);
482 main_cache->InitializeInfiniteCache(lazy_params_->infinite_cache_path); 482 main_cache->InitializeInfiniteCache(lazy_params_->infinite_cache_path);
483 483
484 #if defined(OS_ANDROID) || defined(OS_IOS) 484 #if defined(OS_ANDROID) || defined(OS_IOS)
485 #if defined(SPDY_PROXY_AUTH_VALUE) 485 #if defined(SPDY_PROXY_AUTH_VALUE)
486 data_reduction_proxy::DataReductionProxySettings:: 486 data_reduction_proxy::DataReductionProxySettings::
487 InitDataReductionProxySession(main_cache->GetSession(), 487 InitDataReductionProxySession(
488 SPDY_PROXY_AUTH_VALUE); 488 main_cache->GetSession(),
489 io_thread_globals->data_reduction_proxy_params.get());
489 #endif 490 #endif
490 #endif 491 #endif
491 492
492 if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) { 493 if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) {
493 main_cache->set_mode( 494 main_cache->set_mode(
494 chrome_browser_net::IsCookieRecordMode() ? 495 chrome_browser_net::IsCookieRecordMode() ?
495 net::HttpCache::RECORD : net::HttpCache::PLAYBACK); 496 net::HttpCache::RECORD : net::HttpCache::PLAYBACK);
496 } 497 }
497 498
498 main_http_factory_.reset(main_cache); 499 main_http_factory_.reset(main_cache);
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 domain_reliability::DomainReliabilityClearMode mode, 769 domain_reliability::DomainReliabilityClearMode mode,
769 const base::Closure& completion) { 770 const base::Closure& completion) {
770 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 771 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
771 DCHECK(initialized()); 772 DCHECK(initialized());
772 773
773 if (domain_reliability_monitor_) 774 if (domain_reliability_monitor_)
774 domain_reliability_monitor_->ClearBrowsingData(mode); 775 domain_reliability_monitor_->ClearBrowsingData(mode);
775 776
776 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); 777 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion);
777 } 778 }
OLDNEW
« no previous file with comments | « chrome/browser/net/spdyproxy/proxy_advisor.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698