| 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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 31 #include "content/common/notification_observer.h" | 31 #include "content/common/notification_observer.h" | 
| 32 #include "content/common/notification_registrar.h" | 32 #include "content/common/notification_registrar.h" | 
| 33 #include "content/common/notification_type.h" | 33 #include "content/common/notification_type.h" | 
| 34 #include "googleurl/src/gurl.h" | 34 #include "googleurl/src/gurl.h" | 
| 35 | 35 | 
| 36 class NotificationDetails; | 36 class NotificationDetails; | 
| 37 class NotificationSource; | 37 class NotificationSource; | 
| 38 class Profile; | 38 class Profile; | 
| 39 class ProfileSyncFactory; | 39 class ProfileSyncFactory; | 
| 40 class SigninManager; | 40 class SigninManager; | 
|  | 41 struct ChromeCookieDetails; | 
| 41 | 42 | 
| 42 namespace browser_sync { | 43 namespace browser_sync { | 
| 43 class BackendMigrator; | 44 class BackendMigrator; | 
| 44 class ChangeProcessor; | 45 class ChangeProcessor; | 
| 45 class DataTypeManager; | 46 class DataTypeManager; | 
| 46 class JsFrontend; | 47 class JsFrontend; | 
| 47 class SessionModelAssociator; | 48 class SessionModelAssociator; | 
| 48 namespace sessions { struct SyncSessionSnapshot; } | 49 namespace sessions { struct SyncSessionSnapshot; } | 
| 49 } | 50 } | 
| 50 | 51 | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 201       const syncable::ModelTypeSet& encrypted_types); | 202       const syncable::ModelTypeSet& encrypted_types); | 
| 202   virtual void OnMigrationNeededForTypes( | 203   virtual void OnMigrationNeededForTypes( | 
| 203       const syncable::ModelTypeSet& types); | 204       const syncable::ModelTypeSet& types); | 
| 204 | 205 | 
| 205   // Called when a user enters credentials through UI. | 206   // Called when a user enters credentials through UI. | 
| 206   virtual void OnUserSubmittedAuth(const std::string& username, | 207   virtual void OnUserSubmittedAuth(const std::string& username, | 
| 207                                    const std::string& password, | 208                                    const std::string& password, | 
| 208                                    const std::string& captcha, | 209                                    const std::string& captcha, | 
| 209                                    const std::string& access_code); | 210                                    const std::string& access_code); | 
| 210 | 211 | 
|  | 212   // Called when a cookie, e. g. oauth_token, changes | 
|  | 213   virtual void OnCookieChanged(Profile* profile, | 
|  | 214                                ChromeCookieDetails* cookie_details); | 
|  | 215 | 
| 211   // Update the last auth error and notify observers of error state. | 216   // Update the last auth error and notify observers of error state. | 
| 212   void UpdateAuthErrorState(const GoogleServiceAuthError& error); | 217   void UpdateAuthErrorState(const GoogleServiceAuthError& error); | 
| 213 | 218 | 
| 214   // Called when a user chooses which data types to sync as part of the sync | 219   // Called when a user chooses which data types to sync as part of the sync | 
| 215   // setup wizard.  |sync_everything| represents whether they chose the | 220   // setup wizard.  |sync_everything| represents whether they chose the | 
| 216   // "keep everything synced" option; if true, |chosen_types| will be ignored | 221   // "keep everything synced" option; if true, |chosen_types| will be ignored | 
| 217   // and all data types will be synced.  |sync_everything| means "sync all | 222   // and all data types will be synced.  |sync_everything| means "sync all | 
| 218   // current and future data types." | 223   // current and future data types." | 
| 219   virtual void OnUserChoseDatatypes(bool sync_everything, | 224   virtual void OnUserChoseDatatypes(bool sync_everything, | 
| 220       const syncable::ModelTypeSet& chosen_types); | 225       const syncable::ModelTypeSet& chosen_types); | 
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 651   // because we haven't finished initializing). Cleared when we successfully | 656   // because we haven't finished initializing). Cleared when we successfully | 
| 652   // post a new encrypt task to the sync backend. | 657   // post a new encrypt task to the sync backend. | 
| 653   syncable::ModelTypeSet pending_types_for_encryption_; | 658   syncable::ModelTypeSet pending_types_for_encryption_; | 
| 654 | 659 | 
| 655   scoped_ptr<browser_sync::BackendMigrator> migrator_; | 660   scoped_ptr<browser_sync::BackendMigrator> migrator_; | 
| 656 | 661 | 
| 657   DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 662   DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 
| 658 }; | 663 }; | 
| 659 | 664 | 
| 660 #endif  // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 665 #endif  // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 
| OLD | NEW | 
|---|