| OLD | NEW |
| 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_ |
| OLD | NEW |