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

Side by Side Diff: components/browsing_data_ui/history_notice_utils.h

Issue 1824333002: Change ShouldShowNoticeAboutOtherFormsOfBrowsingHistory to be asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return value. Created 4 years, 9 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
« no previous file with comments | « no previous file | components/browsing_data_ui/history_notice_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class Callback;
8 class ProfileSyncService; 9 class ProfileSyncService;
9 10
10 namespace history { 11 namespace history {
11 class WebHistoryService; 12 class WebHistoryService;
12 } 13 }
13 14
14 namespace browsing_data_ui { 15 namespace browsing_data_ui {
15 16
16 // Whether the Clear Browsing Data UI should show a notice about the existence 17 // 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. 18 // of other forms of browsing history stored in user's account. The response
18 bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( 19 // is returned in a |callback|.
20 void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
19 const ProfileSyncService* sync_service, 21 const ProfileSyncService* sync_service,
20 const history::WebHistoryService* history_service); 22 const history::WebHistoryService* history_service,
23 base::Callback<void(bool)> callback);
21 24
22 } // namespace browsing_data_ui 25 } // namespace browsing_data_ui
23 26
24 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ 27 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | components/browsing_data_ui/history_notice_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698