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

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

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/devtools/devtools_network_controller_handle.h" 23 #include "chrome/browser/devtools/devtools_network_controller_handle.h"
24 #include "chrome/browser/io_thread.h" 24 #include "chrome/browser/io_thread.h"
25 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/profiles/storage_partition_descriptor.h" 26 #include "chrome/browser/profiles/storage_partition_descriptor.h"
27 #include "chrome/common/features.h" 27 #include "chrome/common/features.h"
28 #include "components/content_settings/core/common/content_settings_types.h" 28 #include "components/content_settings/core/common/content_settings_types.h"
29 #include "components/policy/core/browser/url_blacklist_manager.h" 29 #include "components/policy/core/browser/url_blacklist_manager.h"
30 #include "components/prefs/pref_member.h" 30 #include "components/prefs/pref_member.h"
31 #include "content/public/browser/content_browser_client.h" 31 #include "content/public/browser/content_browser_client.h"
32 #include "content/public/browser/resource_context.h" 32 #include "content/public/browser/resource_context.h"
33 #include "extensions/features/features.h"
33 #include "net/cookies/cookie_monster.h" 34 #include "net/cookies/cookie_monster.h"
34 #include "net/http/http_cache.h" 35 #include "net/http/http_cache.h"
35 #include "net/http/http_network_session.h" 36 #include "net/http/http_network_session.h"
36 #include "net/url_request/url_request_context.h" 37 #include "net/url_request/url_request_context.h"
37 #include "net/url_request/url_request_interceptor.h" 38 #include "net/url_request/url_request_interceptor.h"
38 #include "net/url_request/url_request_job_factory.h" 39 #include "net/url_request/url_request_job_factory.h"
39 40
40 class ChromeHttpUserAgentSettings; 41 class ChromeHttpUserAgentSettings;
41 class ChromeNetworkDelegate; 42 class ChromeNetworkDelegate;
42 class ChromeURLRequestContextGetter; 43 class ChromeURLRequestContextGetter;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 struct ProfileParams { 313 struct ProfileParams {
313 ProfileParams(); 314 ProfileParams();
314 ~ProfileParams(); 315 ~ProfileParams();
315 316
316 base::FilePath path; 317 base::FilePath path;
317 IOThread* io_thread; 318 IOThread* io_thread;
318 scoped_refptr<content_settings::CookieSettings> cookie_settings; 319 scoped_refptr<content_settings::CookieSettings> cookie_settings;
319 scoped_refptr<HostContentSettingsMap> host_content_settings_map; 320 scoped_refptr<HostContentSettingsMap> host_content_settings_map;
320 scoped_refptr<net::SSLConfigService> ssl_config_service; 321 scoped_refptr<net::SSLConfigService> ssl_config_service;
321 scoped_refptr<net::CookieMonsterDelegate> cookie_monster_delegate; 322 scoped_refptr<net::CookieMonsterDelegate> cookie_monster_delegate;
322 #if defined(ENABLE_EXTENSIONS) 323 #if BUILDFLAG(ENABLE_EXTENSIONS)
323 scoped_refptr<extensions::InfoMap> extension_info_map; 324 scoped_refptr<extensions::InfoMap> extension_info_map;
324 #endif 325 #endif
325 std::unique_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> 326 std::unique_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
326 resource_prefetch_predictor_observer_; 327 resource_prefetch_predictor_observer_;
327 328
328 // This pointer exists only as a means of conveying a url job factory 329 // This pointer exists only as a means of conveying a url job factory
329 // pointer from the protocol handler registry on the UI thread to the 330 // pointer from the protocol handler registry on the UI thread to the
330 // the URLRequestContext on the IO thread. The consumer MUST take 331 // the URLRequestContext on the IO thread. The consumer MUST take
331 // ownership of the object by calling release() on this pointer. 332 // ownership of the object by calling release() on this pointer.
332 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 333 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 mutable BooleanPrefMember quick_check_enabled_; 555 mutable BooleanPrefMember quick_check_enabled_;
555 mutable IntegerPrefMember incognito_availibility_pref_; 556 mutable IntegerPrefMember incognito_availibility_pref_;
556 557
557 BooleanPrefMember enable_metrics_; 558 BooleanPrefMember enable_metrics_;
558 559
559 // Pointed to by NetworkDelegate. 560 // Pointed to by NetworkDelegate.
560 mutable std::unique_ptr<policy::URLBlacklistManager> url_blacklist_manager_; 561 mutable std::unique_ptr<policy::URLBlacklistManager> url_blacklist_manager_;
561 mutable std::unique_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; 562 mutable std::unique_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_;
562 563
563 // Pointed to by URLRequestContext. 564 // Pointed to by URLRequestContext.
564 #if defined(ENABLE_EXTENSIONS) 565 #if BUILDFLAG(ENABLE_EXTENSIONS)
565 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; 566 mutable scoped_refptr<extensions::InfoMap> extension_info_map_;
566 #endif 567 #endif
567 568
568 mutable std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> 569 mutable std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData>
569 data_reduction_proxy_io_data_; 570 data_reduction_proxy_io_data_;
570 571
571 mutable std::unique_ptr<net::ProxyService> proxy_service_; 572 mutable std::unique_ptr<net::ProxyService> proxy_service_;
572 mutable std::unique_ptr<net::TransportSecurityState> 573 mutable std::unique_ptr<net::TransportSecurityState>
573 transport_security_state_; 574 transport_security_state_;
574 mutable std::unique_ptr<net::CTVerifier> cert_transparency_verifier_; 575 mutable std::unique_ptr<net::CTVerifier> cert_transparency_verifier_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 resource_prefetch_predictor_observer_; 614 resource_prefetch_predictor_observer_;
614 615
615 mutable std::unique_ptr<ChromeHttpUserAgentSettings> 616 mutable std::unique_ptr<ChromeHttpUserAgentSettings>
616 chrome_http_user_agent_settings_; 617 chrome_http_user_agent_settings_;
617 618
618 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) 619 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
619 mutable scoped_refptr<const SupervisedUserURLFilter> 620 mutable scoped_refptr<const SupervisedUserURLFilter>
620 supervised_user_url_filter_; 621 supervised_user_url_filter_;
621 #endif 622 #endif
622 623
623 #if defined(ENABLE_EXTENSIONS) 624 #if BUILDFLAG(ENABLE_EXTENSIONS)
624 // Is NULL if switches::kDisableExtensionsHttpThrottling is on. 625 // Is NULL if switches::kDisableExtensionsHttpThrottling is on.
625 mutable std::unique_ptr<extensions::ExtensionThrottleManager> 626 mutable std::unique_ptr<extensions::ExtensionThrottleManager>
626 extension_throttle_manager_; 627 extension_throttle_manager_;
627 #endif 628 #endif
628 629
629 mutable DevToolsNetworkControllerHandle network_controller_handle_; 630 mutable DevToolsNetworkControllerHandle network_controller_handle_;
630 631
631 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> 632 mutable std::unique_ptr<certificate_transparency::TreeStateTracker>
632 ct_tree_tracker_; 633 ct_tree_tracker_;
633 mutable base::Closure ct_tree_tracker_unregistration_; 634 mutable base::Closure ct_tree_tracker_unregistration_;
634 635
635 const Profile::ProfileType profile_type_; 636 const Profile::ProfileType profile_type_;
636 637
637 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 638 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
638 }; 639 };
639 640
640 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 641 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698