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 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 16 matching lines...) Expand all Loading... |
27 class PromoCounter; | 27 class PromoCounter; |
28 class ProtocolHandlerRegistry; | 28 class ProtocolHandlerRegistry; |
29 class TestingProfile; | 29 class TestingProfile; |
30 class WebDataService; | 30 class WebDataService; |
31 | 31 |
32 namespace android { | 32 namespace android { |
33 class TabContentsProvider; | 33 class TabContentsProvider; |
34 } | 34 } |
35 | 35 |
36 namespace base { | 36 namespace base { |
| 37 class DeferredSequencedTaskRunner; |
37 class SequencedTaskRunner; | 38 class SequencedTaskRunner; |
38 class Time; | 39 class Time; |
39 } | 40 } |
40 | 41 |
41 namespace chrome_browser_net { | 42 namespace chrome_browser_net { |
42 class Predictor; | 43 class Predictor; |
43 } | 44 } |
44 | 45 |
45 namespace chromeos { | 46 namespace chromeos { |
46 class LibCrosServiceLibraryImpl; | 47 class LibCrosServiceLibraryImpl; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 158 |
158 // content::BrowserContext implementation ------------------------------------ | 159 // content::BrowserContext implementation ------------------------------------ |
159 | 160 |
160 // Typesafe upcast. | 161 // Typesafe upcast. |
161 virtual TestingProfile* AsTestingProfile(); | 162 virtual TestingProfile* AsTestingProfile(); |
162 | 163 |
163 // Returns sequenced task runner where browser context dependent I/O | 164 // Returns sequenced task runner where browser context dependent I/O |
164 // operations should be performed. | 165 // operations should be performed. |
165 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() = 0; | 166 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() = 0; |
166 | 167 |
| 168 // Returns sequenced task runner where bookmarks I/O operations should be |
| 169 // performed. |
| 170 virtual scoped_refptr<base::DeferredSequencedTaskRunner> |
| 171 GetBookmarksTaskRunner() = 0; |
| 172 |
167 // Returns the name associated with this profile. This name is displayed in | 173 // Returns the name associated with this profile. This name is displayed in |
168 // the browser frame. | 174 // the browser frame. |
169 virtual std::string GetProfileName() = 0; | 175 virtual std::string GetProfileName() = 0; |
170 | 176 |
171 // Return the incognito version of this profile. The returned pointer | 177 // Return the incognito version of this profile. The returned pointer |
172 // is owned by the receiving profile. If the receiving profile is off the | 178 // is owned by the receiving profile. If the receiving profile is off the |
173 // record, the same profile is returned. | 179 // record, the same profile is returned. |
174 // | 180 // |
175 // WARNING: This will create the OffTheRecord profile if it doesn't already | 181 // WARNING: This will create the OffTheRecord profile if it doesn't already |
176 // exist. If this isn't what you want, you need to check | 182 // exist. If this isn't what you want, you need to check |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 struct hash<Profile*> { | 408 struct hash<Profile*> { |
403 std::size_t operator()(Profile* const& p) const { | 409 std::size_t operator()(Profile* const& p) const { |
404 return reinterpret_cast<std::size_t>(p); | 410 return reinterpret_cast<std::size_t>(p); |
405 } | 411 } |
406 }; | 412 }; |
407 | 413 |
408 } // namespace BASE_HASH_NAMESPACE | 414 } // namespace BASE_HASH_NAMESPACE |
409 #endif | 415 #endif |
410 | 416 |
411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 417 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |