| 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 "base/memory/weak_ptr.h" |
| 10 #include "content/public/browser/web_ui_controller.h" | 11 #include "content/public/browser/web_ui_controller.h" |
| 11 #include "ui/base/layout.h" | 12 #include "ui/base/layout.h" |
| 12 | 13 |
| 13 class Profile; | 14 class Profile; |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class ListValue; | 17 class ListValue; |
| 17 class RefCountedMemory; | 18 class RefCountedMemory; |
| 18 } | 19 } |
| 19 | 20 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 ui::ScaleFactor scale_factor); | 42 ui::ScaleFactor scale_factor); |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); | 45 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); |
| 45 | 46 |
| 46 static bool use_test_title_; | 47 static bool use_test_title_; |
| 47 | 48 |
| 48 // Handler for the "menuPromoShown" message from the page. No arguments. | 49 // Handler for the "menuPromoShown" message from the page. No arguments. |
| 49 void HandleMenuPromoShown(const base::ListValue* args); | 50 void HandleMenuPromoShown(const base::ListValue* args); |
| 50 | 51 |
| 52 // Callback method to update sign in state in data source when profile info |
| 53 // changed. |
| 54 void SignInChanged(bool signed_in); |
| 55 |
| 51 content::WebUIDataSource* data_source_; // weak | 56 content::WebUIDataSource* data_source_; // weak |
| 52 | 57 |
| 58 base::WeakPtrFactory<MdHistoryUI> weak_ptr_factory_; |
| 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 |