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

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

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from willchan and sgurun Created 6 years, 4 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 prerender::PrerenderTracker* prerender_tracker; 336 prerender::PrerenderTracker* prerender_tracker;
337 }; 337 };
338 338
339 explicit ProfileIOData(Profile::ProfileType profile_type); 339 explicit ProfileIOData(Profile::ProfileType profile_type);
340 340
341 static std::string GetSSLSessionCacheShard(); 341 static std::string GetSSLSessionCacheShard();
342 342
343 void InitializeOnUIThread(Profile* profile); 343 void InitializeOnUIThread(Profile* profile);
344 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; 344 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const;
345 345
346 #if defined(OS_ANDROID)
347 #if defined(SPDY_PROXY_AUTH_ORIGIN)
348 void SetDataReductionProxyUsageStatsOnIOThread(IOThread* io_thread,
349 Profile* profile);
350 void SetDataReductionProxyUsageStatsOnUIThread(Profile* profile,
351 data_reduction_proxy::DataReductionProxyUsageStats* usage_stats);
352 #endif
353 #endif
354
355 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( 346 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults(
356 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory, 347 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory,
357 content::URLRequestInterceptorScopedVector request_interceptors, 348 content::URLRequestInterceptorScopedVector request_interceptors,
358 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 349 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
359 protocol_handler_interceptor, 350 protocol_handler_interceptor,
360 net::NetworkDelegate* network_delegate, 351 net::NetworkDelegate* network_delegate,
361 net::FtpTransactionFactory* ftp_transaction_factory) const; 352 net::FtpTransactionFactory* ftp_transaction_factory) const;
362 353
363 // Called when the profile is destroyed. 354 // Called when the profile is destroyed.
364 void ShutdownOnUIThread(); 355 void ShutdownOnUIThread();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 611
621 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 612 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
622 bool initialized_on_UI_thread_; 613 bool initialized_on_UI_thread_;
623 614
624 const Profile::ProfileType profile_type_; 615 const Profile::ProfileType profile_type_;
625 616
626 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 617 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
627 }; 618 };
628 619
629 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 620 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698