OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ | 5 #ifndef COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ |
6 #define COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ | 6 #define COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ |
7 | 7 |
| 8 #include "base/callback_forward.h" |
| 9 |
8 class ProfileSyncService; | 10 class ProfileSyncService; |
9 | 11 |
10 namespace history { | 12 namespace history { |
11 class WebHistoryService; | 13 class WebHistoryService; |
12 } | 14 } |
13 | 15 |
14 namespace browsing_data_ui { | 16 namespace browsing_data_ui { |
15 | 17 |
16 // Whether the Clear Browsing Data UI should show a notice about the existence | 18 // Whether the Clear Browsing Data UI should show a notice about the existence |
17 // of other forms of browsing history stored in user's account. | 19 // of other forms of browsing history stored in user's account. The response |
18 bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( | 20 // is returned in a |callback|. |
| 21 void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( |
19 const ProfileSyncService* sync_service, | 22 const ProfileSyncService* sync_service, |
20 const history::WebHistoryService* history_service); | 23 history::WebHistoryService* history_service, |
| 24 base::Callback<void(bool)> callback); |
21 | 25 |
22 } // namespace browsing_data_ui | 26 } // namespace browsing_data_ui |
23 | 27 |
24 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ | 28 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ |
OLD | NEW |