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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to run tests overnight. Created 6 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 prerender::PrerenderTracker* prerender_tracker; 324 prerender::PrerenderTracker* prerender_tracker;
325 }; 325 };
326 326
327 explicit ProfileIOData(Profile::ProfileType profile_type); 327 explicit ProfileIOData(Profile::ProfileType profile_type);
328 328
329 static std::string GetSSLSessionCacheShard(); 329 static std::string GetSSLSessionCacheShard();
330 330
331 void InitializeOnUIThread(Profile* profile); 331 void InitializeOnUIThread(Profile* profile);
332 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; 332 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const;
333 333
334 #if defined(OS_ANDROID)
335 #if defined(SPDY_PROXY_AUTH_ORIGIN)
336 void SetDataReductionProxyUsageStatsOnIOThread(IOThread* io_thread, 334 void SetDataReductionProxyUsageStatsOnIOThread(IOThread* io_thread,
337 Profile* profile); 335 Profile* profile);
338 void SetDataReductionProxyUsageStatsOnUIThread(Profile* profile, 336 void SetupDataReductionProxyOnUIThread(Profile* profile,
bengr 2014/07/15 16:38:16 Why the name change? Also, please add a comment de
Not at Google. Contact bengr 2014/07/16 22:41:34 Added comments. Method now sets params as well as
337 data_reduction_proxy::DataReductionProxyParams* params,
339 data_reduction_proxy::DataReductionProxyUsageStats* usage_stats); 338 data_reduction_proxy::DataReductionProxyUsageStats* usage_stats);
340 #endif
341 #endif
342 339
343 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( 340 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults(
344 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory, 341 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory,
345 content::URLRequestInterceptorScopedVector request_interceptors, 342 content::URLRequestInterceptorScopedVector request_interceptors,
346 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 343 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
347 protocol_handler_interceptor, 344 protocol_handler_interceptor,
348 net::NetworkDelegate* network_delegate, 345 net::NetworkDelegate* network_delegate,
349 net::FtpTransactionFactory* ftp_transaction_factory) const; 346 net::FtpTransactionFactory* ftp_transaction_factory) const;
350 347
351 // Called when the profile is destroyed. 348 // Called when the profile is destroyed.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 601
605 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 602 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
606 bool initialized_on_UI_thread_; 603 bool initialized_on_UI_thread_;
607 604
608 const Profile::ProfileType profile_type_; 605 const Profile::ProfileType profile_type_;
609 606
610 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 607 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
611 }; 608 };
612 609
613 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 610 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698