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

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

Issue 2468723003: Move session service and supervised users to buildflags. (Closed)
Patch Set: 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>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/synchronization/lock.h" 20 #include "base/synchronization/lock.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
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 "components/content_settings/core/common/content_settings_types.h" 28 #include "components/content_settings/core/common/content_settings_types.h"
28 #include "components/policy/core/browser/url_blacklist_manager.h" 29 #include "components/policy/core/browser/url_blacklist_manager.h"
29 #include "components/prefs/pref_member.h" 30 #include "components/prefs/pref_member.h"
30 #include "content/public/browser/content_browser_client.h" 31 #include "content/public/browser/content_browser_client.h"
31 #include "content/public/browser/resource_context.h" 32 #include "content/public/browser/resource_context.h"
32 #include "net/cookies/cookie_monster.h" 33 #include "net/cookies/cookie_monster.h"
33 #include "net/http/http_cache.h" 34 #include "net/http/http_cache.h"
34 #include "net/http/http_network_session.h" 35 #include "net/http/http_network_session.h"
35 #include "net/url_request/url_request_context.h" 36 #include "net/url_request/url_request_context.h"
36 #include "net/url_request/url_request_interceptor.h" 37 #include "net/url_request/url_request_interceptor.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 220
220 chrome_browser_net::ResourcePrefetchPredictorObserver* 221 chrome_browser_net::ResourcePrefetchPredictorObserver*
221 resource_prefetch_predictor_observer() const { 222 resource_prefetch_predictor_observer() const {
222 return resource_prefetch_predictor_observer_.get(); 223 return resource_prefetch_predictor_observer_.get();
223 } 224 }
224 225
225 policy::PolicyHeaderIOHelper* policy_header_helper() const { 226 policy::PolicyHeaderIOHelper* policy_header_helper() const {
226 return policy_header_helper_.get(); 227 return policy_header_helper_.get();
227 } 228 }
228 229
229 #if defined(ENABLE_SUPERVISED_USERS) 230 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
230 const SupervisedUserURLFilter* supervised_user_url_filter() const { 231 const SupervisedUserURLFilter* supervised_user_url_filter() const {
231 return supervised_user_url_filter_.get(); 232 return supervised_user_url_filter_.get();
232 } 233 }
233 #endif 234 #endif
234 235
235 // Initialize the member needed to track the metrics enabled state. This is 236 // Initialize the member needed to track the metrics enabled state. This is
236 // only to be called on the UI thread. 237 // only to be called on the UI thread.
237 void InitializeMetricsEnabledStateOnUIThread(); 238 void InitializeMetricsEnabledStateOnUIThread();
238 239
239 // Returns whether or not metrics reporting is enabled in the browser instance 240 // Returns whether or not metrics reporting is enabled in the browser instance
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 334
334 // Holds the URLRequestInterceptor pointer that is created on the UI thread 335 // Holds the URLRequestInterceptor pointer that is created on the UI thread
335 // and then passed to the list of request_interceptors on the IO thread. 336 // and then passed to the list of request_interceptors on the IO thread.
336 std::unique_ptr<net::URLRequestInterceptor> new_tab_page_interceptor; 337 std::unique_ptr<net::URLRequestInterceptor> new_tab_page_interceptor;
337 338
338 // We need to initialize the ProxyConfigService from the UI thread 339 // We need to initialize the ProxyConfigService from the UI thread
339 // because on linux it relies on initializing things through gconf, 340 // because on linux it relies on initializing things through gconf,
340 // and needs to be on the main thread. 341 // and needs to be on the main thread.
341 std::unique_ptr<net::ProxyConfigService> proxy_config_service; 342 std::unique_ptr<net::ProxyConfigService> proxy_config_service;
342 343
343 #if defined(ENABLE_SUPERVISED_USERS) 344 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
344 scoped_refptr<const SupervisedUserURLFilter> supervised_user_url_filter; 345 scoped_refptr<const SupervisedUserURLFilter> supervised_user_url_filter;
345 #endif 346 #endif
346 347
347 #if defined(OS_CHROMEOS) 348 #if defined(OS_CHROMEOS)
348 std::string username_hash; 349 std::string username_hash;
349 bool use_system_key_slot; 350 bool use_system_key_slot;
350 std::unique_ptr<chromeos::CertificateProvider> certificate_provider; 351 std::unique_ptr<chromeos::CertificateProvider> certificate_provider;
351 #endif 352 #endif
352 353
353 // The profile this struct was populated from. It's passed as a void* to 354 // The profile this struct was populated from. It's passed as a void* to
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 mutable scoped_refptr<content_settings::CookieSettings> cookie_settings_; 608 mutable scoped_refptr<content_settings::CookieSettings> cookie_settings_;
608 609
609 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 610 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
610 611
611 mutable std::unique_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> 612 mutable std::unique_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
612 resource_prefetch_predictor_observer_; 613 resource_prefetch_predictor_observer_;
613 614
614 mutable std::unique_ptr<ChromeHttpUserAgentSettings> 615 mutable std::unique_ptr<ChromeHttpUserAgentSettings>
615 chrome_http_user_agent_settings_; 616 chrome_http_user_agent_settings_;
616 617
617 #if defined(ENABLE_SUPERVISED_USERS) 618 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
618 mutable scoped_refptr<const SupervisedUserURLFilter> 619 mutable scoped_refptr<const SupervisedUserURLFilter>
619 supervised_user_url_filter_; 620 supervised_user_url_filter_;
620 #endif 621 #endif
621 622
622 #if defined(ENABLE_EXTENSIONS) 623 #if defined(ENABLE_EXTENSIONS)
623 // Is NULL if switches::kDisableExtensionsHttpThrottling is on. 624 // Is NULL if switches::kDisableExtensionsHttpThrottling is on.
624 mutable std::unique_ptr<extensions::ExtensionThrottleManager> 625 mutable std::unique_ptr<extensions::ExtensionThrottleManager>
625 extension_throttle_manager_; 626 extension_throttle_manager_;
626 #endif 627 #endif
627 628
628 mutable DevToolsNetworkControllerHandle network_controller_handle_; 629 mutable DevToolsNetworkControllerHandle network_controller_handle_;
629 630
630 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> 631 mutable std::unique_ptr<certificate_transparency::TreeStateTracker>
631 ct_tree_tracker_; 632 ct_tree_tracker_;
632 mutable base::Closure ct_tree_tracker_unregistration_; 633 mutable base::Closure ct_tree_tracker_unregistration_;
633 634
634 const Profile::ProfileType profile_type_; 635 const Profile::ProfileType profile_type_;
635 636
636 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 637 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
637 }; 638 };
638 639
639 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 640 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698