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

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

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 4 Created 7 years, 10 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
OLDNEW
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 EXIT_NORMAL, 114 EXIT_NORMAL,
115 115
116 // The exit was the result of the system shutting down. 116 // The exit was the result of the system shutting down.
117 EXIT_SESSION_ENDED, 117 EXIT_SESSION_ENDED,
118 118
119 EXIT_CRASHED, 119 EXIT_CRASHED,
120 }; 120 };
121 121
122 class Delegate { 122 class Delegate {
123 public: 123 public:
124 virtual ~Delegate() {}
125
124 // Called when creation of the profile is finished. 126 // Called when creation of the profile is finished.
125 virtual void OnProfileCreated(Profile* profile, 127 virtual void OnProfileCreated(Profile* profile,
126 bool success, 128 bool success,
127 bool is_new_profile) = 0; 129 bool is_new_profile) = 0;
128 }; 130 };
129 131
130 // Key used to bind profile to the widget with which it is associated. 132 // Key used to bind profile to the widget with which it is associated.
131 static const char* const kProfileKey; 133 static const char* const kProfileKey;
132 134
133 Profile(); 135 Profile();
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 struct hash<Profile*> { 387 struct hash<Profile*> {
386 std::size_t operator()(Profile* const& p) const { 388 std::size_t operator()(Profile* const& p) const {
387 return reinterpret_cast<std::size_t>(p); 389 return reinterpret_cast<std::size_t>(p);
388 } 390 }
389 }; 391 };
390 392
391 } // namespace BASE_HASH_NAMESPACE 393 } // namespace BASE_HASH_NAMESPACE
392 #endif 394 #endif
393 395
394 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 396 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/user_info_fetcher.h ('k') | chrome/browser/signin/about_signin_internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698