OLD | NEW |
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 const StoragePartitionDescriptor& partition_descriptor) const; | 153 const StoragePartitionDescriptor& partition_descriptor) const; |
154 | 154 |
155 // These are useful when the Chrome layer is called from the content layer | 155 // These are useful when the Chrome layer is called from the content layer |
156 // with a content::ResourceContext, and they want access to Chrome data for | 156 // with a content::ResourceContext, and they want access to Chrome data for |
157 // that profile. | 157 // that profile. |
158 extensions::InfoMap* GetExtensionInfoMap() const; | 158 extensions::InfoMap* GetExtensionInfoMap() const; |
159 extensions::ExtensionThrottleManager* GetExtensionThrottleManager() const; | 159 extensions::ExtensionThrottleManager* GetExtensionThrottleManager() const; |
160 content_settings::CookieSettings* GetCookieSettings() const; | 160 content_settings::CookieSettings* GetCookieSettings() const; |
161 HostContentSettingsMap* GetHostContentSettingsMap() const; | 161 HostContentSettingsMap* GetHostContentSettingsMap() const; |
162 | 162 |
163 IntegerPrefMember* session_startup_pref() const { | |
164 return &session_startup_pref_; | |
165 } | |
166 | |
167 StringPrefMember* google_services_account_id() const { | 163 StringPrefMember* google_services_account_id() const { |
168 return &google_services_user_account_id_; | 164 return &google_services_user_account_id_; |
169 } | 165 } |
170 | 166 |
171 net::URLRequestContext* extensions_request_context() const { | 167 net::URLRequestContext* extensions_request_context() const { |
172 return extensions_request_context_.get(); | 168 return extensions_request_context_.get(); |
173 } | 169 } |
174 | 170 |
175 BooleanPrefMember* safe_browsing_enabled() const { | 171 BooleanPrefMember* safe_browsing_enabled() const { |
176 return &safe_browsing_enabled_; | 172 return &safe_browsing_enabled_; |
177 } | 173 } |
178 | 174 |
179 BooleanPrefMember* sync_disabled() const { | |
180 return &sync_disabled_; | |
181 } | |
182 | |
183 BooleanPrefMember* signin_allowed() const { | |
184 return &signin_allowed_; | |
185 } | |
186 | |
187 IntegerPrefMember* network_prediction_options() const { | 175 IntegerPrefMember* network_prediction_options() const { |
188 return &network_prediction_options_; | 176 return &network_prediction_options_; |
189 } | 177 } |
190 | 178 |
191 bool HasMediaDeviceIDSalt() const { | 179 bool HasMediaDeviceIDSalt() const { |
192 return media_device_id_salt_.get() != nullptr; | 180 return media_device_id_salt_.get() != nullptr; |
193 } | 181 } |
194 | 182 |
195 std::string GetMediaDeviceIDSalt() const; | 183 std::string GetMediaDeviceIDSalt() const; |
196 | 184 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 | 523 |
536 mutable scoped_refptr<MediaDeviceIDSalt> media_device_id_salt_; | 524 mutable scoped_refptr<MediaDeviceIDSalt> media_device_id_salt_; |
537 | 525 |
538 // Member variables which are pointed to by the various context objects. | 526 // Member variables which are pointed to by the various context objects. |
539 mutable BooleanPrefMember enable_referrers_; | 527 mutable BooleanPrefMember enable_referrers_; |
540 mutable BooleanPrefMember enable_do_not_track_; | 528 mutable BooleanPrefMember enable_do_not_track_; |
541 mutable BooleanPrefMember force_google_safesearch_; | 529 mutable BooleanPrefMember force_google_safesearch_; |
542 mutable IntegerPrefMember force_youtube_restrict_; | 530 mutable IntegerPrefMember force_youtube_restrict_; |
543 mutable BooleanPrefMember safe_browsing_enabled_; | 531 mutable BooleanPrefMember safe_browsing_enabled_; |
544 mutable StringPrefMember allowed_domains_for_apps_; | 532 mutable StringPrefMember allowed_domains_for_apps_; |
545 mutable BooleanPrefMember sync_disabled_; | |
546 mutable BooleanPrefMember signin_allowed_; | |
547 mutable IntegerPrefMember network_prediction_options_; | 533 mutable IntegerPrefMember network_prediction_options_; |
548 // TODO(marja): Remove session_startup_pref_ if no longer needed. | |
549 mutable IntegerPrefMember session_startup_pref_; | |
550 mutable BooleanPrefMember quick_check_enabled_; | |
551 mutable IntegerPrefMember incognito_availibility_pref_; | 534 mutable IntegerPrefMember incognito_availibility_pref_; |
552 | 535 |
553 BooleanPrefMember enable_metrics_; | 536 BooleanPrefMember enable_metrics_; |
554 | 537 |
555 // Pointed to by NetworkDelegate. | 538 // Pointed to by NetworkDelegate. |
556 mutable std::unique_ptr<policy::URLBlacklistManager> url_blacklist_manager_; | 539 mutable std::unique_ptr<policy::URLBlacklistManager> url_blacklist_manager_; |
557 mutable std::unique_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; | 540 mutable std::unique_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; |
558 | 541 |
559 // Pointed to by URLRequestContext. | 542 // Pointed to by URLRequestContext. |
560 #if BUILDFLAG(ENABLE_EXTENSIONS) | 543 #if BUILDFLAG(ENABLE_EXTENSIONS) |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 610 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
628 ct_tree_tracker_; | 611 ct_tree_tracker_; |
629 mutable base::Closure ct_tree_tracker_unregistration_; | 612 mutable base::Closure ct_tree_tracker_unregistration_; |
630 | 613 |
631 const Profile::ProfileType profile_type_; | 614 const Profile::ProfileType profile_type_; |
632 | 615 |
633 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 616 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
634 }; | 617 }; |
635 | 618 |
636 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 619 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |