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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 bool IsSyncAccessible(); | 388 bool IsSyncAccessible(); |
389 | 389 |
390 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not | 390 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not |
391 // already been sent. It is necessary because most Profiles are destroyed by | 391 // already been sent. It is necessary because most Profiles are destroyed by |
392 // ProfileDestroyer, but in tests, some are not. | 392 // ProfileDestroyer, but in tests, some are not. |
393 void MaybeSendDestroyedNotification(); | 393 void MaybeSendDestroyedNotification(); |
394 | 394 |
395 // Creates an OffTheRecordProfile which points to this Profile. | 395 // Creates an OffTheRecordProfile which points to this Profile. |
396 Profile* CreateOffTheRecordProfile(); | 396 Profile* CreateOffTheRecordProfile(); |
397 | 397 |
| 398 // Convenience method to retrieve the default zoom level for the default |
| 399 // storage partition. |
| 400 double GetDefaultZoomLevelForProfile(); |
| 401 |
398 private: | 402 private: |
399 bool restored_last_session_; | 403 bool restored_last_session_; |
400 | 404 |
401 // Used to prevent the notification that this Profile is destroyed from | 405 // Used to prevent the notification that this Profile is destroyed from |
402 // being sent twice. | 406 // being sent twice. |
403 bool sent_destroyed_notification_; | 407 bool sent_destroyed_notification_; |
404 | 408 |
405 // Accessibility events will only be propagated when the pause | 409 // Accessibility events will only be propagated when the pause |
406 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 410 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
407 // increment and decrement the level, respectively, rather than set it to | 411 // increment and decrement the level, respectively, rather than set it to |
408 // true or false, so that calls can be nested. | 412 // true or false, so that calls can be nested. |
409 int accessibility_pause_level_; | 413 int accessibility_pause_level_; |
410 | 414 |
411 DISALLOW_COPY_AND_ASSIGN(Profile); | 415 DISALLOW_COPY_AND_ASSIGN(Profile); |
412 }; | 416 }; |
413 | 417 |
414 // The comparator for profile pointers as key in a map. | 418 // The comparator for profile pointers as key in a map. |
415 struct ProfileCompare { | 419 struct ProfileCompare { |
416 bool operator()(Profile* a, Profile* b) const; | 420 bool operator()(Profile* a, Profile* b) const; |
417 }; | 421 }; |
418 | 422 |
419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 423 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |