OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 17 matching lines...) Expand all Loading... | |
28 class LibCrosServiceLibraryImpl; | 28 class LibCrosServiceLibraryImpl; |
29 class ResetDefaultProxyConfigServiceTask; | 29 class ResetDefaultProxyConfigServiceTask; |
30 } | 30 } |
31 | 31 |
32 namespace fileapi { | 32 namespace fileapi { |
33 class FileSystemContext; | 33 class FileSystemContext; |
34 class SandboxedFileSystemContext; | 34 class SandboxedFileSystemContext; |
35 } | 35 } |
36 | 36 |
37 namespace history { | 37 namespace history { |
38 class ShortcutsBackend; | |
38 class TopSites; | 39 class TopSites; |
39 class ShortcutsBackend; | |
40 } | 40 } |
41 | 41 |
42 namespace net { | 42 namespace net { |
43 class SSLConfigService; | |
43 class TransportSecurityState; | 44 class TransportSecurityState; |
44 class SSLConfigService; | |
45 } | 45 } |
46 | 46 |
47 namespace prerender { | 47 namespace prerender { |
48 class PrerenderManager; | 48 class PrerenderManager; |
49 } | 49 } |
50 | 50 |
51 namespace speech_input { | 51 namespace speech_input { |
52 class SpeechRecognizer; | 52 class SpeechRecognizer; |
53 } | 53 } |
54 | 54 |
(...skipping 20 matching lines...) Expand all Loading... | |
75 class PrefProxyConfigTracker; | 75 class PrefProxyConfigTracker; |
76 class PrefService; | 76 class PrefService; |
77 class ProfileSyncFactory; | 77 class ProfileSyncFactory; |
78 class ProfileSyncService; | 78 class ProfileSyncService; |
79 class PromoCounter; | 79 class PromoCounter; |
80 class PromoResourceService; | 80 class PromoResourceService; |
81 class ProtocolHandlerRegistry; | 81 class ProtocolHandlerRegistry; |
82 class SQLitePersistentCookieStore; | 82 class SQLitePersistentCookieStore; |
83 class SSLConfigServiceManager; | 83 class SSLConfigServiceManager; |
84 class SpellCheckHost; | 84 class SpellCheckHost; |
85 class TabContents; | |
85 class TemplateURLFetcher; | 86 class TemplateURLFetcher; |
86 class TokenService; | 87 class TokenService; |
87 class TransportSecurityPersister; | 88 class TransportSecurityPersister; |
88 class UserScriptMaster; | 89 class UserScriptMaster; |
89 class UserStyleSheetWatcher; | 90 class UserStyleSheetWatcher; |
90 class VisitedLinkEventListener; | 91 class VisitedLinkEventListener; |
91 class VisitedLinkMaster; | 92 class VisitedLinkMaster; |
92 class WebDataService; | 93 class WebDataService; |
93 class WebUI; | 94 class WebUI; |
94 | 95 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
337 // Retrieves a pointer to the PrefService that manages the preferences | 338 // Retrieves a pointer to the PrefService that manages the preferences |
338 // for this user profile. The PrefService is lazily created the first | 339 // for this user profile. The PrefService is lazily created the first |
339 // time that this method is called. | 340 // time that this method is called. |
340 virtual PrefService* GetPrefs() = 0; | 341 virtual PrefService* GetPrefs() = 0; |
341 | 342 |
342 // Retrieves a pointer to the PrefService that manages the preferences | 343 // Retrieves a pointer to the PrefService that manages the preferences |
343 // for OffTheRecord Profiles. This PrefService is lazily created the first | 344 // for OffTheRecord Profiles. This PrefService is lazily created the first |
344 // time that this method is called. | 345 // time that this method is called. |
345 virtual PrefService* GetOffTheRecordPrefs() = 0; | 346 virtual PrefService* GetOffTheRecordPrefs() = 0; |
346 | 347 |
348 // Retrieves a pointer to a special PrefService with overrides per | |
349 // TabContents. Non-user pref sources such as policy, command-line and | |
350 // extensions are shared with the profile's main pref service. | |
351 // | |
352 // Ideally, this would live in a per-TabContest context object, but since on | |
Avi (use Gerrit)
2011/09/07 18:00:56
What is a "per-TabContent (typo) context object"?
Mattias Nissler (ping if slow)
2011/09/07 18:24:46
Ah, I wasn't aware of TabContentsWrapper :) I'll m
| |
353 // the Chrome side there is no per-TabContents context object, it's here in | |
354 // Profile, which is the content::BrowserContext shared by potentially several | |
355 // TabContents. | |
356 virtual PrefService* GetPrefsForTabContents(TabContents* contents) = 0; | |
Mattias Nissler (ping if slow)
2011/09/07 17:54:24
This is the accessor for getting the per-TabConten
| |
357 | |
347 // Returns the TemplateURLFetcher for this profile. This is owned by the | 358 // Returns the TemplateURLFetcher for this profile. This is owned by the |
348 // profile. | 359 // profile. |
349 virtual TemplateURLFetcher* GetTemplateURLFetcher() = 0; | 360 virtual TemplateURLFetcher* GetTemplateURLFetcher() = 0; |
350 | 361 |
351 // Returns the PersonalDataManager associated with this profile. | 362 // Returns the PersonalDataManager associated with this profile. |
352 virtual PersonalDataManager* GetPersonalDataManager() = 0; | 363 virtual PersonalDataManager* GetPersonalDataManager() = 0; |
353 | 364 |
354 // Returns the request context used for extension-related requests. This | 365 // Returns the request context used for extension-related requests. This |
355 // is only used for a separate cookie store currently. | 366 // is only used for a separate cookie store currently. |
356 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 367 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
577 struct hash<Profile*> { | 588 struct hash<Profile*> { |
578 std::size_t operator()(Profile* const& p) const { | 589 std::size_t operator()(Profile* const& p) const { |
579 return reinterpret_cast<std::size_t>(p); | 590 return reinterpret_cast<std::size_t>(p); |
580 } | 591 } |
581 }; | 592 }; |
582 | 593 |
583 } // namespace __gnu_cxx | 594 } // namespace __gnu_cxx |
584 #endif | 595 #endif |
585 | 596 |
586 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 597 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |