| 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 346 } |
| 347 | 347 |
| 348 bool ShouldSendAccessibilityEvents() { | 348 bool ShouldSendAccessibilityEvents() { |
| 349 return 0 == accessibility_pause_level_; | 349 return 0 == accessibility_pause_level_; |
| 350 } | 350 } |
| 351 | 351 |
| 352 // Checks whether sync is configurable by the user. Returns false if sync is | 352 // Checks whether sync is configurable by the user. Returns false if sync is |
| 353 // disabled or controlled by configuration management. | 353 // disabled or controlled by configuration management. |
| 354 bool IsSyncAccessible(); | 354 bool IsSyncAccessible(); |
| 355 | 355 |
| 356 // Checks whether signin to Chrome is allowed by the user. Returns false if |
| 357 // signin is disabled or controlled by configuration management. |
| 358 bool IsSigninAllowed(); |
| 359 |
| 356 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not | 360 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not |
| 357 // already been sent. It is necessary because most Profiles are destroyed by | 361 // already been sent. It is necessary because most Profiles are destroyed by |
| 358 // ProfileDestroyer, but in tests, some are not. | 362 // ProfileDestroyer, but in tests, some are not. |
| 359 void MaybeSendDestroyedNotification(); | 363 void MaybeSendDestroyedNotification(); |
| 360 | 364 |
| 361 // Creates an OffTheRecordProfile which points to this Profile. | 365 // Creates an OffTheRecordProfile which points to this Profile. |
| 362 Profile* CreateOffTheRecordProfile(); | 366 Profile* CreateOffTheRecordProfile(); |
| 363 | 367 |
| 364 protected: | 368 protected: |
| 365 // TODO(erg, willchan): Remove friendship once |ProfileIOData| is made into | 369 // TODO(erg, willchan): Remove friendship once |ProfileIOData| is made into |
| (...skipping 21 matching lines...) Expand all Loading... |
| 387 struct hash<Profile*> { | 391 struct hash<Profile*> { |
| 388 std::size_t operator()(Profile* const& p) const { | 392 std::size_t operator()(Profile* const& p) const { |
| 389 return reinterpret_cast<std::size_t>(p); | 393 return reinterpret_cast<std::size_t>(p); |
| 390 } | 394 } |
| 391 }; | 395 }; |
| 392 | 396 |
| 393 } // namespace BASE_HASH_NAMESPACE | 397 } // namespace BASE_HASH_NAMESPACE |
| 394 #endif | 398 #endif |
| 395 | 399 |
| 396 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 400 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |