OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // syncer::JsEventHandler implementation. | 71 // syncer::JsEventHandler implementation. |
72 void HandleJsEvent(const std::string& name, | 72 void HandleJsEvent(const std::string& name, |
73 const syncer::JsEventDetails& details) override; | 73 const syncer::JsEventDetails& details) override; |
74 | 74 |
75 // Callback used in GetAllNodes. | 75 // Callback used in GetAllNodes. |
76 void OnReceivedAllNodes(int request_id, | 76 void OnReceivedAllNodes(int request_id, |
77 std::unique_ptr<base::ListValue> nodes); | 77 std::unique_ptr<base::ListValue> nodes); |
78 | 78 |
79 // syncer::SyncServiceObserver implementation. | 79 // syncer::SyncServiceObserver implementation. |
80 void OnStateChanged() override; | 80 void OnStateChanged(syncer::SyncService* sync) override; |
81 | 81 |
82 // ProtocolEventObserver implementation. | 82 // ProtocolEventObserver implementation. |
83 void OnProtocolEvent(const syncer::ProtocolEvent& e) override; | 83 void OnProtocolEvent(const syncer::ProtocolEvent& e) override; |
84 | 84 |
85 // TypeDebugInfoObserver implementation. | 85 // TypeDebugInfoObserver implementation. |
86 void OnCommitCountersUpdated(syncer::ModelType type, | 86 void OnCommitCountersUpdated(syncer::ModelType type, |
87 const syncer::CommitCounters& counters) override; | 87 const syncer::CommitCounters& counters) override; |
88 void OnUpdateCountersUpdated(syncer::ModelType type, | 88 void OnUpdateCountersUpdated(syncer::ModelType type, |
89 const syncer::UpdateCounters& counters) override; | 89 const syncer::UpdateCounters& counters) override; |
90 void OnStatusCountersUpdated(syncer::ModelType type, | 90 void OnStatusCountersUpdated(syncer::ModelType type, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 // An abstraction of who creates the about sync info value map. | 123 // An abstraction of who creates the about sync info value map. |
124 std::unique_ptr<AboutSyncDataExtractor> about_sync_data_extractor_; | 124 std::unique_ptr<AboutSyncDataExtractor> about_sync_data_extractor_; |
125 | 125 |
126 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; | 126 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); | 128 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); |
129 }; | 129 }; |
130 | 130 |
131 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ | 131 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ |
OLD | NEW |