Chromium Code Reviews| Index: chrome/browser/ui/webui/sync_internals_message_handler.h |
| diff --git a/chrome/browser/ui/webui/sync_internals_message_handler.h b/chrome/browser/ui/webui/sync_internals_message_handler.h |
| index 80cc63ab04549ff52e132fdc581528aafea4baf3..70265f472efb8619e5b0a4f119f9da9b4f5349c1 100644 |
| --- a/chrome/browser/ui/webui/sync_internals_message_handler.h |
| +++ b/chrome/browser/ui/webui/sync_internals_message_handler.h |
| @@ -17,7 +17,6 @@ |
| #include "content/public/browser/web_ui_message_handler.h" |
| #include "sync/js/js_controller.h" |
| #include "sync/js/js_event_handler.h" |
| -#include "sync/js/js_reply_handler.h" |
| class ProfileSyncService; |
| @@ -25,7 +24,6 @@ class ProfileSyncService; |
| class SyncInternalsMessageHandler |
| : public content::WebUIMessageHandler, |
| public syncer::JsEventHandler, |
| - public syncer::JsReplyHandler, |
| public ProfileSyncServiceObserver, |
| public browser_sync::ProtocolEventObserver { |
| public: |
| @@ -34,9 +32,6 @@ class SyncInternalsMessageHandler |
| virtual void RegisterMessages() OVERRIDE; |
| - // Forwards requests to the JsController. |
| - void ForwardToJsController(const std::string& name, const base::ListValue*); |
| - |
| // Sets up observers to receive events and forward them to the UI. |
| void HandleRegisterForEvents(const base::ListValue* args); |
| @@ -46,15 +41,18 @@ class SyncInternalsMessageHandler |
| // Fires and event to send the list of types back to the page. |
| void HandleRequestListOfTypes(const base::ListValue* args); |
| + // Handler for getAllNodes message. Needs a |request_id| argument. |
| + void HandleGetAllNodes(const base::ListValue* args); |
| + |
| // syncer::JsEventHandler implementation. |
| virtual void HandleJsEvent( |
| const std::string& name, |
| const syncer::JsEventDetails& details) OVERRIDE; |
| - // syncer::JsReplyHandler implementation. |
| - virtual void HandleJsReply( |
| - const std::string& name, |
| - const syncer::JsArgList& args) OVERRIDE; |
| + // Callback used in GetAllNodes. |
| + void OnReceivedAllNodes( |
| + int request_id, |
| + scoped_ptr<base::ListValue> nodes); |
|
Dan Beam
2014/04/05 00:19:25
nit:
void OnReceivedAllNodes(int request_id,
rlarocque
2014/04/05 00:27:29
Done. (It all fits on one line.)
|
| // ProfileSyncServiceObserver implementation. |
| virtual void OnStateChanged() OVERRIDE; |
| @@ -63,9 +61,6 @@ class SyncInternalsMessageHandler |
| virtual void OnProtocolEvent(const syncer::ProtocolEvent& e) OVERRIDE; |
| private: |
| - // Helper function to register JsController function callbacks. |
| - void RegisterJsControllerCallback(const std::string& name); |
| - |
| // Fetches updated aboutInfo and sends it to the page in the form of an |
| // onAboutInfoUpdated event. |
| void SendAboutInfo(); |