Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Side by Side Diff: chrome/browser/ui/webui/sync_internals_message_handler.h

Issue 134443004: sync: Remove some WebUI debug functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 public syncer::JsEventHandler, 24 public syncer::JsEventHandler,
25 public syncer::JsReplyHandler { 25 public syncer::JsReplyHandler {
26 public: 26 public:
27 SyncInternalsMessageHandler(); 27 SyncInternalsMessageHandler();
28 virtual ~SyncInternalsMessageHandler(); 28 virtual ~SyncInternalsMessageHandler();
29 29
30 virtual void RegisterMessages() OVERRIDE; 30 virtual void RegisterMessages() OVERRIDE;
31 31
32 void ForwardToJsController(const std::string& name, const base::ListValue*); 32 void ForwardToJsController(const std::string& name, const base::ListValue*);
33 void OnGetAboutInfo(const base::ListValue*); 33 void OnGetAboutInfo(const base::ListValue*);
34 void OnGetListOfTypes(const base::ListValue*);
34 35
35 // syncer::JsEventHandler implementation. 36 // syncer::JsEventHandler implementation.
36 virtual void HandleJsEvent( 37 virtual void HandleJsEvent(
37 const std::string& name, 38 const std::string& name,
38 const syncer::JsEventDetails& details) OVERRIDE; 39 const syncer::JsEventDetails& details) OVERRIDE;
39 40
40 // syncer::JsReplyHandler implementation. 41 // syncer::JsReplyHandler implementation.
41 virtual void HandleJsReply( 42 virtual void HandleJsReply(
42 const std::string& name, 43 const std::string& name,
43 const syncer::JsArgList& args) OVERRIDE; 44 const syncer::JsArgList& args) OVERRIDE;
44 45
45 private: 46 private:
46 void RegisterJsControllerCallback(const std::string& name); 47 void RegisterJsControllerCallback(const std::string& name);
47 ProfileSyncService* GetProfileSyncService(); 48 ProfileSyncService* GetProfileSyncService();
48 49
49 base::WeakPtr<syncer::JsController> js_controller_; 50 base::WeakPtr<syncer::JsController> js_controller_;
50 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; 51 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); 53 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler);
53 }; 54 };
54 55
55 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ 56 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_browsertest.js ('k') | chrome/browser/ui/webui/sync_internals_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698