OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_IMPL_H_ |
8 #define CHROME_BROWSER_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILE_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual WebKitContext* GetWebKitContext(); | 93 virtual WebKitContext* GetWebKitContext(); |
94 virtual DesktopNotificationService* GetDesktopNotificationService(); | 94 virtual DesktopNotificationService* GetDesktopNotificationService(); |
95 virtual BackgroundContentsService* GetBackgroundContentsService(); | 95 virtual BackgroundContentsService* GetBackgroundContentsService(); |
96 virtual StatusTray* GetStatusTray(); | 96 virtual StatusTray* GetStatusTray(); |
97 virtual void MarkAsCleanShutdown(); | 97 virtual void MarkAsCleanShutdown(); |
98 virtual void InitExtensions(); | 98 virtual void InitExtensions(); |
99 virtual NTPResourceCache* GetNTPResourceCache(); | 99 virtual NTPResourceCache* GetNTPResourceCache(); |
100 virtual FilePath last_selected_directory(); | 100 virtual FilePath last_selected_directory(); |
101 virtual void set_last_selected_directory(const FilePath& path); | 101 virtual void set_last_selected_directory(const FilePath& path); |
102 virtual ProfileSyncService* GetProfileSyncService(); | 102 virtual ProfileSyncService* GetProfileSyncService(); |
| 103 virtual ProfileSyncService* GetProfileSyncService( |
| 104 const std::string& cros_user); |
103 virtual TokenService* GetTokenService(); | 105 virtual TokenService* GetTokenService(); |
104 void InitSyncService(); | 106 void InitSyncService(const std::string& cros_user); |
105 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 107 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
106 void InitCloudPrintProxyService(); | 108 void InitCloudPrintProxyService(); |
107 virtual ChromeBlobStorageContext* GetBlobStorageContext(); | 109 virtual ChromeBlobStorageContext* GetBlobStorageContext(); |
108 | 110 |
109 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
110 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl(); | 112 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl(); |
111 #endif // defined(OS_CHROMEOS) | 113 #endif // defined(OS_CHROMEOS) |
112 | 114 |
113 // NotificationObserver implementation. | 115 // NotificationObserver implementation. |
114 virtual void Observe(NotificationType type, | 116 virtual void Observe(NotificationType type, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 chromeos::Preferences chromeos_preferences_; | 244 chromeos::Preferences chromeos_preferences_; |
243 | 245 |
244 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 246 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
245 chromeos_proxy_config_service_impl_; | 247 chromeos_proxy_config_service_impl_; |
246 #endif | 248 #endif |
247 | 249 |
248 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 250 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
249 }; | 251 }; |
250 | 252 |
251 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ | 253 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ |
OLD | NEW |