| 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 | |
| 22 class MdDownloadsUI : public content::WebUIController { | 16 class MdDownloadsUI : public content::WebUIController { |
| 23 public: | 17 public: |
| 24 explicit MdDownloadsUI(content::WebUI* web_ui); | 18 explicit MdDownloadsUI(content::WebUI* web_ui); |
| 25 | 19 |
| 26 static base::RefCountedMemory* GetFaviconResourceBytes( | 20 static base::RefCountedMemory* GetFaviconResourceBytes( |
| 27 ui::ScaleFactor scale_factor); | 21 ui::ScaleFactor scale_factor); |
| 28 | 22 |
| 29 // content::WebUIController: | |
| 30 void RenderViewReused(content::RenderViewHost* render_view_host) override; | |
| 31 | |
| 32 private: | 23 private: |
| 33 MdDownloadsDOMHandler* handler_; // Weak. | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(MdDownloadsUI); | 24 DISALLOW_COPY_AND_ASSIGN(MdDownloadsUI); |
| 36 }; | 25 }; |
| 37 | 26 |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_ | 27 #endif // CHROME_BROWSER_UI_WEBUI_MD_DOWNLOADS_MD_DOWNLOADS_UI_H_ |
| OLD | NEW |