Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: chrome/browser/profile.h

Issue 165330: Disable RTTI and C++ exceptions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/nsimage_cache.mm ('k') | testing/gtest.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/nsimage_cache.mm ('k') | testing/gtest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698