| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace content { | 50 namespace content { |
| 51 class WebUI; | 51 class WebUI; |
| 52 } | 52 } |
| 53 | 53 |
| 54 namespace fileapi { | 54 namespace fileapi { |
| 55 class FileSystemContext; | 55 class FileSystemContext; |
| 56 } | 56 } |
| 57 | 57 |
| 58 namespace gcm { |
| 59 class GCMPermissionContext; |
| 60 } |
| 61 |
| 58 namespace history { | 62 namespace history { |
| 59 class TopSites; | 63 class TopSites; |
| 60 } | 64 } |
| 61 | 65 |
| 62 namespace net { | 66 namespace net { |
| 63 class SSLConfigService; | 67 class SSLConfigService; |
| 64 } | 68 } |
| 65 | 69 |
| 66 namespace user_prefs { | 70 namespace user_prefs { |
| 67 class PrefRegistrySyncable; | 71 class PrefRegistrySyncable; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // later calls are ignored. | 361 // later calls are ignored. |
| 358 // | 362 // |
| 359 // NOTE: this is invoked internally on a normal shutdown, but is public so | 363 // NOTE: this is invoked internally on a normal shutdown, but is public so |
| 360 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION), | 364 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION), |
| 361 // or to handle backgrounding/foregrounding on mobile. | 365 // or to handle backgrounding/foregrounding on mobile. |
| 362 virtual void SetExitType(ExitType exit_type) = 0; | 366 virtual void SetExitType(ExitType exit_type) = 0; |
| 363 | 367 |
| 364 // Returns how the last session was shutdown. | 368 // Returns how the last session was shutdown. |
| 365 virtual ExitType GetLastSessionExitType() = 0; | 369 virtual ExitType GetLastSessionExitType() = 0; |
| 366 | 370 |
| 371 virtual gcm::GCMPermissionContext* GetPushMessagingPermissionContext() = 0; |
| 372 |
| 367 // Stop sending accessibility events until ResumeAccessibilityEvents(). | 373 // Stop sending accessibility events until ResumeAccessibilityEvents(). |
| 368 // Calls to Pause nest; no events will be sent until the number of | 374 // Calls to Pause nest; no events will be sent until the number of |
| 369 // Resume calls matches the number of Pause calls received. | 375 // Resume calls matches the number of Pause calls received. |
| 370 void PauseAccessibilityEvents() { | 376 void PauseAccessibilityEvents() { |
| 371 accessibility_pause_level_++; | 377 accessibility_pause_level_++; |
| 372 } | 378 } |
| 373 | 379 |
| 374 void ResumeAccessibilityEvents() { | 380 void ResumeAccessibilityEvents() { |
| 375 DCHECK_GT(accessibility_pause_level_, 0); | 381 DCHECK_GT(accessibility_pause_level_, 0); |
| 376 accessibility_pause_level_--; | 382 accessibility_pause_level_--; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 struct hash<Profile*> { | 430 struct hash<Profile*> { |
| 425 std::size_t operator()(Profile* const& p) const { | 431 std::size_t operator()(Profile* const& p) const { |
| 426 return reinterpret_cast<std::size_t>(p); | 432 return reinterpret_cast<std::size_t>(p); |
| 427 } | 433 } |
| 428 }; | 434 }; |
| 429 | 435 |
| 430 } // namespace BASE_HASH_NAMESPACE | 436 } // namespace BASE_HASH_NAMESPACE |
| 431 #endif | 437 #endif |
| 432 | 438 |
| 433 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 439 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |