OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 bool restored_last_session_; | 558 bool restored_last_session_; |
559 | 559 |
560 // Accessibility events will only be propagated when the pause | 560 // Accessibility events will only be propagated when the pause |
561 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 561 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
562 // increment and decrement the level, respectively, rather than set it to | 562 // increment and decrement the level, respectively, rather than set it to |
563 // true or false, so that calls can be nested. | 563 // true or false, so that calls can be nested. |
564 int accessibility_pause_level_; | 564 int accessibility_pause_level_; |
565 }; | 565 }; |
566 | 566 |
567 #if defined(COMPILER_GCC) | 567 #if defined(COMPILER_GCC) |
568 namespace __gnu_cxx { | 568 namespace __gnu_cxx { |
569 | 569 |
570 template<> | 570 template<> |
571 struct hash<Profile*> { | 571 struct hash<Profile*> { |
572 std::size_t operator()(Profile* const& p) const { | 572 std::size_t operator()(Profile* const& p) const { |
573 return reinterpret_cast<std::size_t>(p); | 573 return reinterpret_cast<std::size_t>(p); |
574 } | 574 } |
575 }; | 575 }; |
576 | 576 |
577 } // namespace __gnu_cxx | 577 } // namespace __gnu_cxx |
578 #endif | 578 #endif |
579 | 579 |
580 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 580 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |