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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 class PrefProxyConfigTracker; | 79 class PrefProxyConfigTracker; |
80 class PrefService; | 80 class PrefService; |
81 class ProfileSyncFactory; | 81 class ProfileSyncFactory; |
82 class ProfileSyncService; | 82 class ProfileSyncService; |
83 class PromoCounter; | 83 class PromoCounter; |
84 class ProtocolHandlerRegistry; | 84 class ProtocolHandlerRegistry; |
85 class SQLitePersistentCookieStore; | 85 class SQLitePersistentCookieStore; |
86 class SSLConfigServiceManager; | 86 class SSLConfigServiceManager; |
87 class SSLHostState; | 87 class SSLHostState; |
88 class SpellCheckHost; | 88 class SpellCheckHost; |
89 class StatusTray; | |
90 class TemplateURLFetcher; | 89 class TemplateURLFetcher; |
91 class TemplateURLModel; | 90 class TemplateURLModel; |
92 class TokenService; | 91 class TokenService; |
93 class TransportSecurityPersister; | 92 class TransportSecurityPersister; |
94 class UserScriptMaster; | 93 class UserScriptMaster; |
95 class UserStyleSheetWatcher; | 94 class UserStyleSheetWatcher; |
96 class VisitedLinkEventListener; | 95 class VisitedLinkEventListener; |
97 class VisitedLinkMaster; | 96 class VisitedLinkMaster; |
98 class WebDataService; | 97 class WebDataService; |
99 class WebKitContext; | 98 class WebKitContext; |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 virtual SpellCheckHost* GetSpellCheckHost() = 0; | 441 virtual SpellCheckHost* GetSpellCheckHost() = 0; |
443 | 442 |
444 // If |force| is false, and the spellchecker is already initialized (or is in | 443 // If |force| is false, and the spellchecker is already initialized (or is in |
445 // the process of initializing), then do nothing. Otherwise clobber the | 444 // the process of initializing), then do nothing. Otherwise clobber the |
446 // current spellchecker and replace it with a new one. | 445 // current spellchecker and replace it with a new one. |
447 virtual void ReinitializeSpellCheckHost(bool force) = 0; | 446 virtual void ReinitializeSpellCheckHost(bool force) = 0; |
448 | 447 |
449 // Returns the WebKitContext assigned to this profile. | 448 // Returns the WebKitContext assigned to this profile. |
450 virtual WebKitContext* GetWebKitContext() = 0; | 449 virtual WebKitContext* GetWebKitContext() = 0; |
451 | 450 |
452 // Returns the StatusTray, which provides an API for displaying status icons | |
453 // in the system status tray. Returns NULL if status icons are not supported | |
454 // on this platform (or this is a unit test). | |
455 virtual StatusTray* GetStatusTray() = 0; | |
456 | |
457 // Marks the profile as cleanly shutdown. | 451 // Marks the profile as cleanly shutdown. |
458 // | 452 // |
459 // NOTE: this is invoked internally on a normal shutdown, but is public so | 453 // NOTE: this is invoked internally on a normal shutdown, but is public so |
460 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 454 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
461 virtual void MarkAsCleanShutdown() = 0; | 455 virtual void MarkAsCleanShutdown() = 0; |
462 | 456 |
463 // Initializes extensions machinery. | 457 // Initializes extensions machinery. |
464 // Component extensions are always enabled, external and user extensions | 458 // Component extensions are always enabled, external and user extensions |
465 // are controlled by |extensions_enabled|. | 459 // are controlled by |extensions_enabled|. |
466 virtual void InitExtensions(bool extensions_enabled) = 0; | 460 virtual void InitExtensions(bool extensions_enabled) = 0; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 bool restored_last_session_; | 570 bool restored_last_session_; |
577 | 571 |
578 // Accessibility events will only be propagated when the pause | 572 // Accessibility events will only be propagated when the pause |
579 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 573 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
580 // increment and decrement the level, respectively, rather than set it to | 574 // increment and decrement the level, respectively, rather than set it to |
581 // true or false, so that calls can be nested. | 575 // true or false, so that calls can be nested. |
582 int accessibility_pause_level_; | 576 int accessibility_pause_level_; |
583 }; | 577 }; |
584 | 578 |
585 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 579 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |