| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HISTORY_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/public/browser/web_ui_controller.h" | 10 #include "content/public/browser/web_ui_controller.h" |
| 11 #include "ui/base/layout.h" | |
| 12 | 11 |
| 13 namespace base { | 12 namespace base { |
| 14 class ListValue; | 13 class ListValue; |
| 15 class RefCountedMemory; | |
| 16 } | 14 } |
| 17 | 15 |
| 18 namespace user_prefs { | 16 namespace user_prefs { |
| 19 class PrefRegistrySyncable; | 17 class PrefRegistrySyncable; |
| 20 } | 18 } |
| 21 | 19 |
| 22 class MdHistoryUI : public content::WebUIController { | 20 class MdHistoryUI : public content::WebUIController { |
| 23 public: | 21 public: |
| 24 explicit MdHistoryUI(content::WebUI* web_ui); | 22 explicit MdHistoryUI(content::WebUI* web_ui); |
| 25 ~MdHistoryUI() override; | 23 ~MdHistoryUI() override; |
| 26 | 24 |
| 27 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 25 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 28 | 26 |
| 29 static base::RefCountedMemory* GetFaviconResourceBytes( | |
| 30 ui::ScaleFactor scale_factor); | |
| 31 | |
| 32 private: | 27 private: |
| 33 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); | 28 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); |
| 34 | 29 |
| 35 static bool use_test_title_; | 30 static bool use_test_title_; |
| 36 | 31 |
| 37 void UpdateDataSource(); | 32 void UpdateDataSource(); |
| 38 | 33 |
| 39 // Handler for the "menuPromoShown" message from the page. No arguments. | 34 // Handler for the "menuPromoShown" message from the page. No arguments. |
| 40 void HandleMenuPromoShown(const base::ListValue* args); | 35 void HandleMenuPromoShown(const base::ListValue* args); |
| 41 | 36 |
| 42 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); | 37 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); |
| 43 }; | 38 }; |
| 44 | 39 |
| 45 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ | 40 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ |
| OLD | NEW |