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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 } | 146 } |
147 | 147 |
148 BooleanPrefMember* printing_enabled() const { | 148 BooleanPrefMember* printing_enabled() const { |
149 return &printing_enabled_; | 149 return &printing_enabled_; |
150 } | 150 } |
151 | 151 |
152 BooleanPrefMember* sync_disabled() const { | 152 BooleanPrefMember* sync_disabled() const { |
153 return &sync_disabled_; | 153 return &sync_disabled_; |
154 } | 154 } |
155 | 155 |
156 BooleanPrefMember* signin_allowed() const { | |
157 return &signin_allowed_; | |
158 } | |
159 | |
156 net::TransportSecurityState* transport_security_state() const { | 160 net::TransportSecurityState* transport_security_state() const { |
157 return transport_security_state_.get(); | 161 return transport_security_state_.get(); |
158 } | 162 } |
159 | 163 |
160 bool is_incognito() const { | 164 bool is_incognito() const { |
161 return is_incognito_; | 165 return is_incognito_; |
162 } | 166 } |
163 | 167 |
164 chrome_browser_net::ResourcePrefetchPredictorObserver* | 168 chrome_browser_net::ResourcePrefetchPredictorObserver* |
165 resource_prefetch_predictor_observer() const { | 169 resource_prefetch_predictor_observer() const { |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
433 | 437 |
434 mutable StringListPrefMember one_click_signin_rejected_email_list_; | 438 mutable StringListPrefMember one_click_signin_rejected_email_list_; |
435 | 439 |
436 // Member variables which are pointed to by the various context objects. | 440 // Member variables which are pointed to by the various context objects. |
437 mutable BooleanPrefMember enable_referrers_; | 441 mutable BooleanPrefMember enable_referrers_; |
438 mutable BooleanPrefMember enable_do_not_track_; | 442 mutable BooleanPrefMember enable_do_not_track_; |
439 mutable BooleanPrefMember force_safesearch_; | 443 mutable BooleanPrefMember force_safesearch_; |
440 mutable BooleanPrefMember safe_browsing_enabled_; | 444 mutable BooleanPrefMember safe_browsing_enabled_; |
441 mutable BooleanPrefMember printing_enabled_; | 445 mutable BooleanPrefMember printing_enabled_; |
442 mutable BooleanPrefMember sync_disabled_; | 446 mutable BooleanPrefMember sync_disabled_; |
447 mutable BooleanPrefMember signin_allowed_; | |
sail
2013/02/08 20:18:57
Why do you need to store this?
Adrian Kuegel
2013/02/11 16:47:30
This is needed in the one_click_signin_helper.cc f
sail
2013/02/20 23:08:21
Ok, makes sense.
| |
443 // TODO(marja): Remove session_startup_pref_ if no longer needed. | 448 // TODO(marja): Remove session_startup_pref_ if no longer needed. |
444 mutable IntegerPrefMember session_startup_pref_; | 449 mutable IntegerPrefMember session_startup_pref_; |
445 | 450 |
446 // The state of metrics reporting in the browser that this profile runs on. | 451 // The state of metrics reporting in the browser that this profile runs on. |
447 // Unfortunately, since ChromeOS has a separate representation of this state, | 452 // Unfortunately, since ChromeOS has a separate representation of this state, |
448 // we need to make one available based on the platform. | 453 // we need to make one available based on the platform. |
449 #if defined(OS_CHROMEOS) | 454 #if defined(OS_CHROMEOS) |
450 bool enable_metrics_; | 455 bool enable_metrics_; |
451 #else | 456 #else |
452 BooleanPrefMember enable_metrics_; | 457 BooleanPrefMember enable_metrics_; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
499 | 504 |
500 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 505 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
501 bool initialized_on_UI_thread_; | 506 bool initialized_on_UI_thread_; |
502 | 507 |
503 bool is_incognito_; | 508 bool is_incognito_; |
504 | 509 |
505 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 510 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
506 }; | 511 }; |
507 | 512 |
508 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 513 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |