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_DOM_UI_SYNC_INTERNALS_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_SYNC_INTERNALS_UI_H_ |
6 #define CHROME_BROWSER_DOM_UI_SYNC_INTERNALS_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_SYNC_INTERNALS_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/browser/dom_ui/web_ui.h" | |
13 #include "chrome/browser/sync/js_event_handler.h" | 12 #include "chrome/browser/sync/js_event_handler.h" |
| 13 #include "chrome/browser/webui/web_ui.h" |
14 | 14 |
15 namespace browser_sync { | 15 namespace browser_sync { |
16 class JsFrontend; | 16 class JsFrontend; |
17 } // namespace browser_sync | 17 } // namespace browser_sync |
18 | 18 |
19 // The implementation for the chrome://sync-internals page. | 19 // The implementation for the chrome://sync-internals page. |
20 class SyncInternalsUI : public WebUI, public browser_sync::JsEventHandler { | 20 class SyncInternalsUI : public WebUI, public browser_sync::JsEventHandler { |
21 public: | 21 public: |
22 explicit SyncInternalsUI(TabContents* contents); | 22 explicit SyncInternalsUI(TabContents* contents); |
23 virtual ~SyncInternalsUI(); | 23 virtual ~SyncInternalsUI(); |
(...skipping 20 matching lines...) Expand all Loading... |
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_DOM_UI_SYNC_INTERNALS_UI_H_ | 53 #endif // CHROME_BROWSER_DOM_UI_SYNC_INTERNALS_UI_H_ |
OLD | NEW |