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

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

Issue 1173343009: LevelDB storage for data reduction proxy to store data usage stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use raw pointers for arguments instead of ref counting Created 5 years, 5 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
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 <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 IOThread::ShouldEnableQuicForDataReductionProxy(); 191 IOThread::ShouldEnableQuicForDataReductionProxy();
192 192
193 io_data_->set_data_reduction_proxy_io_data( 193 io_data_->set_data_reduction_proxy_io_data(
194 CreateDataReductionProxyChromeIOData( 194 CreateDataReductionProxyChromeIOData(
195 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(), 195 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(),
196 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 196 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
197 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 197 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
198 enable_quic_for_data_reduction_proxy) 198 enable_quic_for_data_reduction_proxy)
199 .Pass()); 199 .Pass());
200 200
201 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)-> 201 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)
202 InitDataReductionProxySettings( 202 ->InitDataReductionProxySettings(
203 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), 203 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(),
204 profile_->GetRequestContext(), 204 profile_->GetRequestContext(), profile_path,
205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); 205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
206 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB));
206 } 207 }
207 208
208 content::ResourceContext* 209 content::ResourceContext*
209 ProfileImplIOData::Handle::GetResourceContext() const { 210 ProfileImplIOData::Handle::GetResourceContext() const {
210 DCHECK_CURRENTLY_ON(BrowserThread::UI); 211 DCHECK_CURRENTLY_ON(BrowserThread::UI);
211 LazyInitialize(); 212 LazyInitialize();
212 return GetResourceContextNoInit(); 213 return GetResourceContextNoInit();
213 } 214 }
214 215
215 content::ResourceContext* 216 content::ResourceContext*
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 const base::Closure& completion) { 805 const base::Closure& completion) {
805 DCHECK_CURRENTLY_ON(BrowserThread::IO); 806 DCHECK_CURRENTLY_ON(BrowserThread::IO);
806 DCHECK(initialized()); 807 DCHECK(initialized());
807 808
808 DCHECK(transport_security_state()); 809 DCHECK(transport_security_state());
809 // Completes synchronously. 810 // Completes synchronously.
810 transport_security_state()->DeleteAllDynamicDataSince(time); 811 transport_security_state()->DeleteAllDynamicDataSince(time);
811 DCHECK(http_server_properties_manager_); 812 DCHECK(http_server_properties_manager_);
812 http_server_properties_manager_->Clear(completion); 813 http_server_properties_manager_->Clear(completion);
813 } 814 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698