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

Side by Side Diff: chrome/browser/ui/webui/md_downloads/md_downloads_ui.h

Issue 1428833005: MD Downloads: track downloads in C++, dispatch discrete JS updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
11 11
12 namespace base { 12 namespace base {
13 class RefCountedMemory; 13 class RefCountedMemory;
14 } 14 }
15 15
16 namespace content {
17 class RenderViewHost;
18 }
19
20 class MdDownloadsDOMHandler;
21
16 class MdDownloadsUI : public content::WebUIController { 22 class MdDownloadsUI : public content::WebUIController {
17 public: 23 public:
18 explicit MdDownloadsUI(content::WebUI* web_ui); 24 explicit MdDownloadsUI(content::WebUI* web_ui);
19 25
20 static base::RefCountedMemory* GetFaviconResourceBytes( 26 static base::RefCountedMemory* GetFaviconResourceBytes(
21 ui::ScaleFactor scale_factor); 27 ui::ScaleFactor scale_factor);
22 28
29 // content::WebUIController:
30 void RenderViewReused(content::RenderViewHost* render_view_host) override;
31
23 private: 32 private:
33 MdDownloadsDOMHandler* handler_; // Weak.
34
24 DISALLOW_COPY_AND_ASSIGN(MdDownloadsUI); 35 DISALLOW_COPY_AND_ASSIGN(MdDownloadsUI);
25 }; 36 };
26 37
27 #endif // CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_ 38 #endif // CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698