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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class ChromeBlobStorageContext; | 52 class ChromeBlobStorageContext; |
53 class ChromeURLRequestContextGetter; | 53 class ChromeURLRequestContextGetter; |
54 class CloudPrintProxyService; | 54 class CloudPrintProxyService; |
55 class DesktopNotificationService; | 55 class DesktopNotificationService; |
56 class DownloadManager; | 56 class DownloadManager; |
57 class Extension; | 57 class Extension; |
58 class ExtensionDevToolsManager; | 58 class ExtensionDevToolsManager; |
59 class ExtensionEventRouter; | 59 class ExtensionEventRouter; |
60 class ExtensionInfoMap; | 60 class ExtensionInfoMap; |
61 class ExtensionMessageService; | 61 class ExtensionMessageService; |
| 62 class ExtensionPrefValueMap; |
62 class ExtensionProcessManager; | 63 class ExtensionProcessManager; |
63 class ExtensionService; | 64 class ExtensionService; |
64 class FaviconService; | 65 class FaviconService; |
65 class FilePath; | 66 class FilePath; |
66 class FindBarState; | 67 class FindBarState; |
67 class GeolocationContentSettingsMap; | 68 class GeolocationContentSettingsMap; |
68 class GeolocationPermissionContext; | 69 class GeolocationPermissionContext; |
69 class HistoryService; | 70 class HistoryService; |
70 class HostContentSettingsMap; | 71 class HostContentSettingsMap; |
71 class HostZoomMap; | 72 class HostZoomMap; |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 } | 540 } |
540 | 541 |
541 // Checks whether sync is configurable by the user. Returns false if sync is | 542 // Checks whether sync is configurable by the user. Returns false if sync is |
542 // disabled or controlled by configuration management. | 543 // disabled or controlled by configuration management. |
543 bool IsSyncAccessible(); | 544 bool IsSyncAccessible(); |
544 | 545 |
545 // Creates an OffTheRecordProfile which points to this Profile. | 546 // Creates an OffTheRecordProfile which points to this Profile. |
546 Profile* CreateOffTheRecordProfile(); | 547 Profile* CreateOffTheRecordProfile(); |
547 | 548 |
548 protected: | 549 protected: |
| 550 friend class OffTheRecordProfileImpl; |
| 551 |
549 static URLRequestContextGetter* default_request_context_; | 552 static URLRequestContextGetter* default_request_context_; |
550 | 553 |
| 554 virtual ExtensionPrefValueMap* GetExtensionPrefValueMap() = 0; |
| 555 |
551 private: | 556 private: |
552 bool restored_last_session_; | 557 bool restored_last_session_; |
553 | 558 |
554 // Accessibility events will only be propagated when the pause | 559 // Accessibility events will only be propagated when the pause |
555 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 560 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
556 // increment and decrement the level, respectively, rather than set it to | 561 // increment and decrement the level, respectively, rather than set it to |
557 // true or false, so that calls can be nested. | 562 // true or false, so that calls can be nested. |
558 int accessibility_pause_level_; | 563 int accessibility_pause_level_; |
559 }; | 564 }; |
560 | 565 |
561 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 566 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |