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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // Fires an event to send updated info back to the page. | 62 // Fires an event to send updated info back to the page. |
63 void HandleRequestUpdatedAboutInfo(const base::ListValue* args); | 63 void HandleRequestUpdatedAboutInfo(const base::ListValue* args); |
64 | 64 |
65 // Fires and event to send the list of types back to the page. | 65 // Fires and event to send the list of types back to the page. |
66 void HandleRequestListOfTypes(const base::ListValue* args); | 66 void HandleRequestListOfTypes(const base::ListValue* args); |
67 | 67 |
68 // Handler for getAllNodes message. Needs a |request_id| argument. | 68 // Handler for getAllNodes message. Needs a |request_id| argument. |
69 void HandleGetAllNodes(const base::ListValue* args); | 69 void HandleGetAllNodes(const base::ListValue* args); |
70 | 70 |
| 71 // Handler for requests to get UserEvents tab visibility. |
| 72 void HandleRequestUserEventsVisibility(const base::ListValue* args); |
| 73 |
| 74 // Handler for writeUserEvent message. |
| 75 void HandleWriteUserEvent(const base::ListValue* args); |
| 76 |
71 // syncer::JsEventHandler implementation. | 77 // syncer::JsEventHandler implementation. |
72 void HandleJsEvent(const std::string& name, | 78 void HandleJsEvent(const std::string& name, |
73 const syncer::JsEventDetails& details) override; | 79 const syncer::JsEventDetails& details) override; |
74 | 80 |
75 // Callback used in GetAllNodes. | 81 // Callback used in GetAllNodes. |
76 void OnReceivedAllNodes(int request_id, | 82 void OnReceivedAllNodes(int request_id, |
77 std::unique_ptr<base::ListValue> nodes); | 83 std::unique_ptr<base::ListValue> nodes); |
78 | 84 |
79 // syncer::SyncServiceObserver implementation. | 85 // syncer::SyncServiceObserver implementation. |
80 void OnStateChanged(syncer::SyncService* sync) override; | 86 void OnStateChanged(syncer::SyncService* sync) override; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 128 |
123 // An abstraction of who creates the about sync info value map. | 129 // An abstraction of who creates the about sync info value map. |
124 std::unique_ptr<AboutSyncDataExtractor> about_sync_data_extractor_; | 130 std::unique_ptr<AboutSyncDataExtractor> about_sync_data_extractor_; |
125 | 131 |
126 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; | 132 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; |
127 | 133 |
128 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); | 134 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); |
129 }; | 135 }; |
130 | 136 |
131 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ | 137 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ |
OLD | NEW |