| 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" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 38 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 39 | 39 |
| 40 static base::RefCountedMemory* GetFaviconResourceBytes( | 40 static base::RefCountedMemory* GetFaviconResourceBytes( |
| 41 ui::ScaleFactor scale_factor); | 41 ui::ScaleFactor scale_factor); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); | 44 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); |
| 45 | 45 |
| 46 static bool use_test_title_; | 46 static bool use_test_title_; |
| 47 | 47 |
| 48 // Create and get the current valid data source. |
| 49 content::WebUIDataSource* CreateAndGetDataSource(); |
| 50 |
| 48 // Handler for the "menuPromoShown" message from the page. No arguments. | 51 // Handler for the "menuPromoShown" message from the page. No arguments. |
| 49 void HandleMenuPromoShown(const base::ListValue* args); | 52 void HandleMenuPromoShown(const base::ListValue* args); |
| 50 | 53 |
| 54 // Callback method to update sign in state in data source when profile info |
| 55 // changed. |
| 56 void SignInChanged(bool signed_in); |
| 57 |
| 51 content::WebUIDataSource* data_source_; // weak | 58 content::WebUIDataSource* data_source_; // weak |
| 52 | 59 |
| 53 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); | 60 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); |
| 54 }; | 61 }; |
| 55 | 62 |
| 56 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ | 63 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ |
| OLD | NEW |