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

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

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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
« no previous file with comments | « chrome/browser/ui/webui/sessions_ui.cc ('k') | chrome/browser/ui/webui/sync_internals_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/sync/js/js_event_handler.h" 14 #include "chrome/browser/sync/js/js_event_handler.h"
15 #include "chrome/browser/sync/js/js_reply_handler.h" 15 #include "chrome/browser/sync/js/js_reply_handler.h"
16 #include "chrome/browser/ui/webui/chrome_web_ui.h" 16 #include "chrome/browser/ui/webui/chrome_web_ui.h"
17 17
18 namespace browser_sync { 18 namespace browser_sync {
19 class JsController; 19 class JsController;
20 } // namespace browser_sync 20 } // namespace browser_sync
21 21
22 // The implementation for the chrome://sync-internals page. 22 // The implementation for the chrome://sync-internals page.
23 class SyncInternalsUI : public ChromeWebUI, 23 class SyncInternalsUI : public ChromeWebUI,
24 public browser_sync::JsEventHandler, 24 public browser_sync::JsEventHandler,
25 public browser_sync::JsReplyHandler { 25 public browser_sync::JsReplyHandler {
26 public: 26 public:
27 explicit SyncInternalsUI(TabContents* contents); 27 explicit SyncInternalsUI(content::WebContents* contents);
28 virtual ~SyncInternalsUI(); 28 virtual ~SyncInternalsUI();
29 29
30 // WebUI implementation. 30 // WebUI implementation.
31 // 31 //
32 // The following messages are processed: 32 // The following messages are processed:
33 // 33 //
34 // getAboutInfo(): 34 // getAboutInfo():
35 // Immediately fires a onGetAboutInfoFinished() event with a 35 // Immediately fires a onGetAboutInfoFinished() event with a
36 // dictionary of sync-related stats and info. 36 // dictionary of sync-related stats and info.
37 // 37 //
(...skipping 17 matching lines...) Expand all
55 const browser_sync::JsArgList& args) OVERRIDE; 55 const browser_sync::JsArgList& args) OVERRIDE;
56 56
57 private: 57 private:
58 base::WeakPtrFactory<SyncInternalsUI> weak_ptr_factory_; 58 base::WeakPtrFactory<SyncInternalsUI> weak_ptr_factory_;
59 base::WeakPtr<browser_sync::JsController> js_controller_; 59 base::WeakPtr<browser_sync::JsController> js_controller_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI); 61 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI);
62 }; 62 };
63 63
64 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ 64 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sessions_ui.cc ('k') | chrome/browser/ui/webui/sync_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698