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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 // content::BrowserContext implementation ------------------------------------ | 182 // content::BrowserContext implementation ------------------------------------ |
183 | 183 |
184 // Typesafe upcast. | 184 // Typesafe upcast. |
185 virtual TestingProfile* AsTestingProfile(); | 185 virtual TestingProfile* AsTestingProfile(); |
186 | 186 |
187 // Returns the name associated with this profile. This name is displayed in | 187 // Returns the name associated with this profile. This name is displayed in |
188 // the browser frame. | 188 // the browser frame. |
189 virtual std::string GetProfileName() = 0; | 189 virtual std::string GetProfileName() = 0; |
190 | 190 |
191 // Return whether this profile is incognito. Default is false. | 191 // Return whether this profile is incognito. Default is false. |
192 virtual bool IsOffTheRecord() = 0; | 192 virtual bool IsOffTheRecord() const = 0; |
jam
2012/03/01 06:11:00
this should be taken out, no need to repeat the pu
Ilya Sherman
2012/03/01 06:35:54
Done.
| |
193 | 193 |
194 // Return the incognito version of this profile. The returned pointer | 194 // Return the incognito version of this profile. The returned pointer |
195 // is owned by the receiving profile. If the receiving profile is off the | 195 // is owned by the receiving profile. If the receiving profile is off the |
196 // record, the same profile is returned. | 196 // record, the same profile is returned. |
197 // | 197 // |
198 // WARNING: This will create the OffTheRecord profile if it doesn't already | 198 // WARNING: This will create the OffTheRecord profile if it doesn't already |
199 // exist. If this isn't what you want, you need to check | 199 // exist. If this isn't what you want, you need to check |
200 // HasOffTheRecordProfile() first. | 200 // HasOffTheRecordProfile() first. |
201 virtual Profile* GetOffTheRecordProfile() = 0; | 201 virtual Profile* GetOffTheRecordProfile() = 0; |
202 | 202 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 struct hash<Profile*> { | 525 struct hash<Profile*> { |
526 std::size_t operator()(Profile* const& p) const { | 526 std::size_t operator()(Profile* const& p) const { |
527 return reinterpret_cast<std::size_t>(p); | 527 return reinterpret_cast<std::size_t>(p); |
528 } | 528 } |
529 }; | 529 }; |
530 | 530 |
531 } // namespace BASE_HASH_NAMESPACE | 531 } // namespace BASE_HASH_NAMESPACE |
532 #endif | 532 #endif |
533 | 533 |
534 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 534 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |