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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/md_downloads/md_downloads_ui.h
diff --git a/chrome/browser/ui/webui/md_downloads/md_downloads_ui.h b/chrome/browser/ui/webui/md_downloads/md_downloads_ui.h
index 37ce107a7b30abfdb1058325231e722311e977ce..55d21e1dedcedc8cf5c7c831fef367f179ea962c 100644
--- a/chrome/browser/ui/webui/md_downloads/md_downloads_ui.h
+++ b/chrome/browser/ui/webui/md_downloads/md_downloads_ui.h
@@ -13,6 +13,12 @@ namespace base {
class RefCountedMemory;
}
+namespace content {
+class RenderViewHost;
+}
+
+class MdDownloadsDOMHandler;
+
class MdDownloadsUI : public content::WebUIController {
public:
explicit MdDownloadsUI(content::WebUI* web_ui);
@@ -20,7 +26,12 @@ class MdDownloadsUI : public content::WebUIController {
static base::RefCountedMemory* GetFaviconResourceBytes(
ui::ScaleFactor scale_factor);
+ // content::WebUIController:
+ void RenderViewReused(content::RenderViewHost* render_view_host) override;
+
private:
+ MdDownloadsDOMHandler* handler_; // Weak.
+
DISALLOW_COPY_AND_ASSIGN(MdDownloadsUI);
};

Powered by Google App Engine
This is Rietveld 408576698