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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Returns the profile corresponding to the given WebUI. | 145 // Returns the profile corresponding to the given WebUI. |
146 static Profile* FromWebUI(content::WebUI* web_ui); | 146 static Profile* FromWebUI(content::WebUI* web_ui); |
147 | 147 |
148 // TODO(rlp): Please do not use this function. It is a temporary fix | 148 // TODO(rlp): Please do not use this function. It is a temporary fix |
149 // for M19 stable. See crbug.com/125292. | 149 // for M19 stable. See crbug.com/125292. |
150 static net::URLRequestContextGetter* GetDefaultRequestContextDeprecated() { | 150 static net::URLRequestContextGetter* GetDefaultRequestContextDeprecated() { |
151 return Profile::GetDefaultRequestContext(); | 151 return Profile::GetDefaultRequestContext(); |
152 } | 152 } |
153 | 153 |
154 // content::BrowserContext implementation ------------------------------------ | 154 // content::BrowserContext implementation ------------------------------------ |
| 155 virtual bool ShouldSaveSessionStorageOnDisk() OVERRIDE; |
155 | 156 |
156 // Typesafe upcast. | 157 // Typesafe upcast. |
157 virtual TestingProfile* AsTestingProfile(); | 158 virtual TestingProfile* AsTestingProfile(); |
158 | 159 |
159 // Returns the name associated with this profile. This name is displayed in | 160 // Returns the name associated with this profile. This name is displayed in |
160 // the browser frame. | 161 // the browser frame. |
161 virtual std::string GetProfileName() = 0; | 162 virtual std::string GetProfileName() = 0; |
162 | 163 |
163 // Return the incognito version of this profile. The returned pointer | 164 // Return the incognito version of this profile. The returned pointer |
164 // is owned by the receiving profile. If the receiving profile is off the | 165 // is owned by the receiving profile. If the receiving profile is off the |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 struct hash<Profile*> { | 447 struct hash<Profile*> { |
447 std::size_t operator()(Profile* const& p) const { | 448 std::size_t operator()(Profile* const& p) const { |
448 return reinterpret_cast<std::size_t>(p); | 449 return reinterpret_cast<std::size_t>(p); |
449 } | 450 } |
450 }; | 451 }; |
451 | 452 |
452 } // namespace BASE_HASH_NAMESPACE | 453 } // namespace BASE_HASH_NAMESPACE |
453 #endif | 454 #endif |
454 | 455 |
455 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 456 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |