| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE
R_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE
R_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE
R_H_ | 6 #define IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE
R_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // syncer::JsEventHandler implementation. | 55 // syncer::JsEventHandler implementation. |
| 56 void HandleJsEvent(const std::string& name, | 56 void HandleJsEvent(const std::string& name, |
| 57 const syncer::JsEventDetails& details) override; | 57 const syncer::JsEventDetails& details) override; |
| 58 | 58 |
| 59 // Callback used in GetAllNodes. | 59 // Callback used in GetAllNodes. |
| 60 void OnReceivedAllNodes(int request_id, | 60 void OnReceivedAllNodes(int request_id, |
| 61 std::unique_ptr<base::ListValue> nodes); | 61 std::unique_ptr<base::ListValue> nodes); |
| 62 | 62 |
| 63 // syncer::SyncServiceObserver implementation. | 63 // syncer::SyncServiceObserver implementation. |
| 64 void OnStateChanged() override; | 64 void OnStateChanged(syncer::SyncService* sync) override; |
| 65 | 65 |
| 66 // ProtocolEventObserver implementation. | 66 // ProtocolEventObserver implementation. |
| 67 void OnProtocolEvent(const syncer::ProtocolEvent& e) override; | 67 void OnProtocolEvent(const syncer::ProtocolEvent& e) override; |
| 68 | 68 |
| 69 // TypeDebugInfoObserver implementation. | 69 // TypeDebugInfoObserver implementation. |
| 70 void OnCommitCountersUpdated(syncer::ModelType type, | 70 void OnCommitCountersUpdated(syncer::ModelType type, |
| 71 const syncer::CommitCounters& counters) override; | 71 const syncer::CommitCounters& counters) override; |
| 72 void OnUpdateCountersUpdated(syncer::ModelType type, | 72 void OnUpdateCountersUpdated(syncer::ModelType type, |
| 73 const syncer::UpdateCounters& counters) override; | 73 const syncer::UpdateCounters& counters) override; |
| 74 void OnStatusCountersUpdated(syncer::ModelType type, | 74 void OnStatusCountersUpdated(syncer::ModelType type, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 98 // A flag used to prevent double-registration as TypeDebugInfoObserver with | 98 // A flag used to prevent double-registration as TypeDebugInfoObserver with |
| 99 // ProfileSyncService. | 99 // ProfileSyncService. |
| 100 bool is_registered_for_counters_; | 100 bool is_registered_for_counters_; |
| 101 | 101 |
| 102 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; | 102 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); | 104 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HAN
DLER_H_ | 107 #endif // IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HAN
DLER_H_ |
| OLD | NEW |