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

Side by Side Diff: chrome/browser/ui/webui/md_history_ui.h

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: merge Created 3 years, 7 months 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 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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/log_web_ui_url_browsertest.cc ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698