| 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_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 370 |
| 371 // Returns the BookmarkModel, creating if not yet created. | 371 // Returns the BookmarkModel, creating if not yet created. |
| 372 virtual BookmarkModel* GetBookmarkModel() = 0; | 372 virtual BookmarkModel* GetBookmarkModel() = 0; |
| 373 | 373 |
| 374 // Returns the Gaia Token Service, creating if not yet created. | 374 // Returns the Gaia Token Service, creating if not yet created. |
| 375 virtual TokenService* GetTokenService() = 0; | 375 virtual TokenService* GetTokenService() = 0; |
| 376 | 376 |
| 377 // Returns the ProfileSyncService, creating if not yet created. | 377 // Returns the ProfileSyncService, creating if not yet created. |
| 378 virtual ProfileSyncService* GetProfileSyncService() = 0; | 378 virtual ProfileSyncService* GetProfileSyncService() = 0; |
| 379 | 379 |
| 380 // Returns the ProfileSyncService, creating if not yet created, with |
| 381 // the specified CrOS username. |
| 382 virtual ProfileSyncService* GetProfileSyncService( |
| 383 const std::string& cros_user) = 0; |
| 384 |
| 380 // Returns the CloudPrintProxyService, creating if not yet created. | 385 // Returns the CloudPrintProxyService, creating if not yet created. |
| 381 virtual CloudPrintProxyService* GetCloudPrintProxyService() = 0; | 386 virtual CloudPrintProxyService* GetCloudPrintProxyService() = 0; |
| 382 | 387 |
| 383 // Return whether 2 profiles are the same. 2 profiles are the same if they | 388 // Return whether 2 profiles are the same. 2 profiles are the same if they |
| 384 // represent the same profile. This can happen if there is pointer equality | 389 // represent the same profile. This can happen if there is pointer equality |
| 385 // or if one profile is the off the record version of another profile (or vice | 390 // or if one profile is the off the record version of another profile (or vice |
| 386 // versa). | 391 // versa). |
| 387 virtual bool IsSameProfile(Profile* profile) = 0; | 392 virtual bool IsSameProfile(Profile* profile) = 0; |
| 388 | 393 |
| 389 // Returns the time the profile was started. This is not the time the profile | 394 // Returns the time the profile was started. This is not the time the profile |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 bool restored_last_session_; | 494 bool restored_last_session_; |
| 490 | 495 |
| 491 // Accessibility events will only be propagated when the pause | 496 // Accessibility events will only be propagated when the pause |
| 492 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 497 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 493 // increment and decrement the level, respectively, rather than set it to | 498 // increment and decrement the level, respectively, rather than set it to |
| 494 // true or false, so that calls can be nested. | 499 // true or false, so that calls can be nested. |
| 495 int accessibility_pause_level_; | 500 int accessibility_pause_level_; |
| 496 }; | 501 }; |
| 497 | 502 |
| 498 #endif // CHROME_BROWSER_PROFILE_H_ | 503 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |