| 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 21 matching lines...) Expand all Loading... |
| 32 // Immediately fires a onGetAboutInfoFinished() event with a | 32 // Immediately fires a onGetAboutInfoFinished() event with a |
| 33 // dictionary of sync-related stats and info. | 33 // dictionary of sync-related stats and info. |
| 34 // | 34 // |
| 35 // All other messages are routed to the sync service if it exists, | 35 // All other messages are routed to the sync service if it exists, |
| 36 // and dropped otherwise. | 36 // and dropped otherwise. |
| 37 // | 37 // |
| 38 // TODO(akalin): Add a simple isSyncEnabled() message and make | 38 // TODO(akalin): Add a simple isSyncEnabled() message and make |
| 39 // getAboutInfo() be handled by the sync service. | 39 // getAboutInfo() be handled by the sync service. |
| 40 virtual void OnWebUISend(const GURL& source_url, | 40 virtual void OnWebUISend(const GURL& source_url, |
| 41 const std::string& name, | 41 const std::string& name, |
| 42 const ListValue& args) OVERRIDE; | 42 const base::ListValue& args) OVERRIDE; |
| 43 | 43 |
| 44 // browser_sync::JsEventHandler implementation. | 44 // browser_sync::JsEventHandler implementation. |
| 45 virtual void HandleJsEvent( | 45 virtual void HandleJsEvent( |
| 46 const std::string& name, | 46 const std::string& name, |
| 47 const browser_sync::JsEventDetails& details) OVERRIDE; | 47 const browser_sync::JsEventDetails& details) OVERRIDE; |
| 48 virtual void HandleJsMessageReply( | 48 virtual void HandleJsMessageReply( |
| 49 const std::string& name, | 49 const std::string& name, |
| 50 const browser_sync::JsArgList& args) OVERRIDE; | 50 const browser_sync::JsArgList& args) OVERRIDE; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // Returns the sync service's JsFrontend object, or NULL if the sync | 53 // Returns the sync service's JsFrontend object, or NULL if the sync |
| 54 // service does not exist. | 54 // service does not exist. |
| 55 browser_sync::JsFrontend* GetJsFrontend(); | 55 browser_sync::JsFrontend* GetJsFrontend(); |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI); | 57 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ | 60 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ |
| OLD | NEW |