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_JS_SYNC_MANAGER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ |
6 #define CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 // sync_api::SyncManager::Observer implementation. | 34 // sync_api::SyncManager::Observer implementation. |
35 virtual void OnSyncCycleCompleted( | 35 virtual void OnSyncCycleCompleted( |
36 const sessions::SyncSessionSnapshot* snapshot) OVERRIDE; | 36 const sessions::SyncSessionSnapshot* snapshot) OVERRIDE; |
37 virtual void OnAuthError(const GoogleServiceAuthError& auth_error) OVERRIDE; | 37 virtual void OnAuthError(const GoogleServiceAuthError& auth_error) OVERRIDE; |
38 virtual void OnUpdatedToken(const std::string& token) OVERRIDE; | 38 virtual void OnUpdatedToken(const std::string& token) OVERRIDE; |
39 virtual void OnPassphraseRequired( | 39 virtual void OnPassphraseRequired( |
40 sync_api::PassphraseRequiredReason reason) OVERRIDE; | 40 sync_api::PassphraseRequiredReason reason) OVERRIDE; |
41 virtual void OnPassphraseAccepted( | 41 virtual void OnPassphraseAccepted( |
42 const std::string& bootstrap_token) OVERRIDE; | 42 const std::string& bootstrap_token) OVERRIDE; |
43 virtual void OnEncryptedTypesChanged( | 43 virtual void OnEncryptedTypesChanged( |
44 syncable::ModelEnumSet encrypted_types, | 44 syncable::ModelTypeSet encrypted_types, |
45 bool encrypt_everything) OVERRIDE; | 45 bool encrypt_everything) OVERRIDE; |
46 virtual void OnEncryptionComplete() OVERRIDE; | 46 virtual void OnEncryptionComplete() OVERRIDE; |
47 virtual void OnInitializationComplete( | 47 virtual void OnInitializationComplete( |
48 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; | 48 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; |
49 virtual void OnStopSyncingPermanently() OVERRIDE; | 49 virtual void OnStopSyncingPermanently() OVERRIDE; |
50 virtual void OnClearServerDataSucceeded() OVERRIDE; | 50 virtual void OnClearServerDataSucceeded() OVERRIDE; |
51 virtual void OnClearServerDataFailed() OVERRIDE; | 51 virtual void OnClearServerDataFailed() OVERRIDE; |
52 virtual void OnActionableError( | 52 virtual void OnActionableError( |
53 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE; | 53 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE; |
54 | 54 |
55 private: | 55 private: |
56 void HandleJsEvent(const tracked_objects::Location& from_here, | 56 void HandleJsEvent(const tracked_objects::Location& from_here, |
57 const std::string& name, const JsEventDetails& details); | 57 const std::string& name, const JsEventDetails& details); |
58 | 58 |
59 WeakHandle<JsEventHandler> event_handler_; | 59 WeakHandle<JsEventHandler> event_handler_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); | 61 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace browser_sync | 64 } // namespace browser_sync |
65 | 65 |
66 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ | 66 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ |
OLD | NEW |