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/macros.h" | 9 #include "base/macros.h" |
9 #include "content/public/browser/web_ui_controller.h" | 10 #include "content/public/browser/web_ui_controller.h" |
10 #include "ui/base/layout.h" | 11 #include "ui/base/layout.h" |
11 | 12 |
12 class Profile; | 13 class Profile; |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class ListValue; | 16 class ListValue; |
16 class RefCountedMemory; | 17 class RefCountedMemory; |
17 } | 18 } |
(...skipping 15 matching lines...) Expand all Loading... |
33 | 34 |
34 // Reset the current list of features and explicitly set MD History enabled. | 35 // Reset the current list of features and explicitly set MD History enabled. |
35 static void SetEnabledForTesting(bool enabled); | 36 static void SetEnabledForTesting(bool enabled); |
36 | 37 |
37 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 38 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
38 | 39 |
39 static base::RefCountedMemory* GetFaviconResourceBytes( | 40 static base::RefCountedMemory* GetFaviconResourceBytes( |
40 ui::ScaleFactor scale_factor); | 41 ui::ScaleFactor scale_factor); |
41 | 42 |
42 private: | 43 private: |
| 44 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); |
| 45 |
| 46 static bool use_test_title_; |
| 47 |
43 // Handler for the "menuPromoShown" message from the page. No arguments. | 48 // Handler for the "menuPromoShown" message from the page. No arguments. |
44 void HandleMenuPromoShown(const base::ListValue* args); | 49 void HandleMenuPromoShown(const base::ListValue* args); |
45 | 50 |
46 content::WebUIDataSource* data_source_; // weak | 51 content::WebUIDataSource* data_source_; // weak |
47 | 52 |
48 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); | 53 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); |
49 }; | 54 }; |
50 | 55 |
51 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ | 56 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ |
OLD | NEW |