| 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_JS_SYNC_MANAGER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual void OnSyncCycleCompleted( | 33 virtual void OnSyncCycleCompleted( |
| 34 const sessions::SyncSessionSnapshot* snapshot); | 34 const sessions::SyncSessionSnapshot* snapshot); |
| 35 virtual void OnAuthError(const GoogleServiceAuthError& auth_error); | 35 virtual void OnAuthError(const GoogleServiceAuthError& auth_error); |
| 36 virtual void OnUpdatedToken(const std::string& token); | 36 virtual void OnUpdatedToken(const std::string& token); |
| 37 virtual void OnPassphraseRequired(bool for_decryption); | 37 virtual void OnPassphraseRequired(bool for_decryption); |
| 38 virtual void OnPassphraseFailed(); | 38 virtual void OnPassphraseFailed(); |
| 39 virtual void OnPassphraseAccepted(const std::string& bootstrap_token); | 39 virtual void OnPassphraseAccepted(const std::string& bootstrap_token); |
| 40 virtual void OnEncryptionComplete( | 40 virtual void OnEncryptionComplete( |
| 41 const syncable::ModelTypeSet& encrypted_types); | 41 const syncable::ModelTypeSet& encrypted_types); |
| 42 virtual void OnInitializationComplete(); | 42 virtual void OnInitializationComplete(); |
| 43 virtual void OnPaused(); | |
| 44 virtual void OnResumed(); | |
| 45 virtual void OnStopSyncingPermanently(); | 43 virtual void OnStopSyncingPermanently(); |
| 46 virtual void OnClearServerDataSucceeded(); | 44 virtual void OnClearServerDataSucceeded(); |
| 47 virtual void OnClearServerDataFailed(); | 45 virtual void OnClearServerDataFailed(); |
| 48 | 46 |
| 49 private: | 47 private: |
| 50 JsEventRouter* parent_router_; | 48 JsEventRouter* parent_router_; |
| 51 | 49 |
| 52 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); | 50 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 } // namespace browser_sync | 53 } // namespace browser_sync |
| 56 | 54 |
| 57 #endif // CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ | 55 #endif // CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ |
| OLD | NEW |