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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 class TemplateURLModel; | 95 class TemplateURLModel; |
96 class TokenService; | 96 class TokenService; |
97 class TransportSecurityPersister; | 97 class TransportSecurityPersister; |
98 class URLRequestContextGetter; | 98 class URLRequestContextGetter; |
99 class UserScriptMaster; | 99 class UserScriptMaster; |
100 class UserStyleSheetWatcher; | 100 class UserStyleSheetWatcher; |
101 class VisitedLinkEventListener; | 101 class VisitedLinkEventListener; |
102 class VisitedLinkMaster; | 102 class VisitedLinkMaster; |
103 class WebDataService; | 103 class WebDataService; |
104 class WebKitContext; | 104 class WebKitContext; |
105 class WebResourceService; | 105 class PromoResourceService; |
106 | 106 |
107 typedef intptr_t ProfileId; | 107 typedef intptr_t ProfileId; |
108 | 108 |
109 class Profile { | 109 class Profile { |
110 public: | 110 public: |
111 // Profile services are accessed with the following parameter. This parameter | 111 // Profile services are accessed with the following parameter. This parameter |
112 // defines what the caller plans to do with the service. | 112 // defines what the caller plans to do with the service. |
113 // The caller is responsible for not performing any operation that would | 113 // The caller is responsible for not performing any operation that would |
114 // result in persistent implicit records while using an OffTheRecord profile. | 114 // result in persistent implicit records while using an OffTheRecord profile. |
115 // This flag allows the profile to perform an additional check. | 115 // This flag allows the profile to perform an additional check. |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 virtual StatusTray* GetStatusTray() = 0; | 467 virtual StatusTray* GetStatusTray() = 0; |
468 | 468 |
469 // Marks the profile as cleanly shutdown. | 469 // Marks the profile as cleanly shutdown. |
470 // | 470 // |
471 // NOTE: this is invoked internally on a normal shutdown, but is public so | 471 // NOTE: this is invoked internally on a normal shutdown, but is public so |
472 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 472 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
473 virtual void MarkAsCleanShutdown() = 0; | 473 virtual void MarkAsCleanShutdown() = 0; |
474 | 474 |
475 virtual void InitExtensions() = 0; | 475 virtual void InitExtensions() = 0; |
476 | 476 |
477 // Start up service that gathers data from a web resource feed. | 477 // Start up service that gathers data from a promo resource feed. |
478 virtual void InitWebResources() = 0; | 478 virtual void InitPromoResources() = 0; |
479 | 479 |
480 // Returns the new tab page resource cache. | 480 // Returns the new tab page resource cache. |
481 virtual NTPResourceCache* GetNTPResourceCache() = 0; | 481 virtual NTPResourceCache* GetNTPResourceCache() = 0; |
482 | 482 |
483 // Returns the last directory that was chosen for uploading or opening a file. | 483 // Returns the last directory that was chosen for uploading or opening a file. |
484 virtual FilePath last_selected_directory() = 0; | 484 virtual FilePath last_selected_directory() = 0; |
485 virtual void set_last_selected_directory(const FilePath& path) = 0; | 485 virtual void set_last_selected_directory(const FilePath& path) = 0; |
486 | 486 |
487 // Returns a pointer to the ChromeBlobStorageContext instance for this | 487 // Returns a pointer to the ChromeBlobStorageContext instance for this |
488 // profile. | 488 // profile. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 bool restored_last_session_; | 583 bool restored_last_session_; |
584 | 584 |
585 // Accessibility events will only be propagated when the pause | 585 // Accessibility events will only be propagated when the pause |
586 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 586 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
587 // increment and decrement the level, respectively, rather than set it to | 587 // increment and decrement the level, respectively, rather than set it to |
588 // true or false, so that calls can be nested. | 588 // true or false, so that calls can be nested. |
589 int accessibility_pause_level_; | 589 int accessibility_pause_level_; |
590 }; | 590 }; |
591 | 591 |
592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |