OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 // getAboutInfo(): | 29 // getAboutInfo(): |
30 // Immediately fires a onGetAboutInfoFinished() event with a | 30 // Immediately fires a onGetAboutInfoFinished() event with a |
31 // dictionary of sync-related stats and info. | 31 // dictionary of sync-related stats and info. |
32 // | 32 // |
33 // All other messages are routed to the sync service if it exists, | 33 // All other messages are routed to the sync service if it exists, |
34 // and dropped otherwise. | 34 // and dropped otherwise. |
35 // | 35 // |
36 // TODO(akalin): Add a simple isSyncEnabled() message and make | 36 // TODO(akalin): Add a simple isSyncEnabled() message and make |
37 // getAboutInfo() be handled by the sync service. | 37 // getAboutInfo() be handled by the sync service. |
38 virtual void ProcessWebUIMessage( | 38 virtual void ProcessWebUIMessage( |
39 const ViewHostMsg_DomMessage_Params& params); | 39 const ExtensionHostMsg_DomMessage_Params& params); |
40 | 40 |
41 // browser_sync::JsEventHandler implementation. | 41 // browser_sync::JsEventHandler implementation. |
42 virtual void HandleJsEvent(const std::string& name, | 42 virtual void HandleJsEvent(const std::string& name, |
43 const browser_sync::JsArgList& args); | 43 const browser_sync::JsArgList& args); |
44 | 44 |
45 private: | 45 private: |
46 // Returns the sync service's JsFrontend object, or NULL if the sync | 46 // Returns the sync service's JsFrontend object, or NULL if the sync |
47 // service does not exist. | 47 // service does not exist. |
48 browser_sync::JsFrontend* GetJsFrontend(); | 48 browser_sync::JsFrontend* GetJsFrontend(); |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI); | 50 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ | 53 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ |
OLD | NEW |