OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILE_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 bool shutdown_session_service_; | 480 bool shutdown_session_service_; |
481 | 481 |
482 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 482 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
483 }; | 483 }; |
484 | 484 |
485 #if defined(COMPILER_GCC) | 485 #if defined(COMPILER_GCC) |
486 namespace __gnu_cxx { | 486 namespace __gnu_cxx { |
487 | 487 |
488 template<> | 488 template<> |
489 struct hash<Profile*> { | 489 struct hash<Profile*> { |
490 size_t operator()(Profile* const& p) const { | 490 std::size_t operator()(Profile* const& p) const { |
491 return std::tr1::hash<long>()(reinterpret_cast<long>(p)); | 491 return reinterpret_cast<std::size_t>(p); |
492 } | 492 } |
493 }; | 493 }; |
494 | 494 |
495 } // namespace __gnu_cxx | 495 } // namespace __gnu_cxx |
496 #endif | 496 #endif |
497 | 497 |
498 // This struct is used to pass the spellchecker object through the notification | 498 // This struct is used to pass the spellchecker object through the notification |
499 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 499 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
500 // notification service. | 500 // notification service. |
501 struct SpellcheckerReinitializedDetails { | 501 struct SpellcheckerReinitializedDetails { |
502 scoped_refptr<SpellChecker> spellchecker; | 502 scoped_refptr<SpellChecker> spellchecker; |
503 }; | 503 }; |
504 | 504 |
505 #endif // CHROME_BROWSER_PROFILE_H_ | 505 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |