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

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

Issue 1983073002: Query the existence other forms of browsing history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments, re-added protobuf Created 4 years, 7 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
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 #include <string>
9
8 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
9 11
10 class ProfileSyncService;
11
12 namespace history { 12 namespace history {
13 class WebHistoryService; 13 class WebHistoryService;
14 } 14 }
15 15
16 namespace sync_driver {
17 class SyncService;
18 }
19
20 namespace version_info {
21 enum class Channel;
22 }
23
16 namespace browsing_data_ui { 24 namespace browsing_data_ui {
17 25
18 namespace testing { 26 namespace testing {
19 27
20 // TODO(crbug.com/595332): A boolean flag indicating that 28 // TODO(crbug.com/595332): A boolean flag indicating that
21 // ShouldShowNoticeAboutOtherFormsOfBrowsingHistory() should skip the query 29 // ShouldShowNoticeAboutOtherFormsOfBrowsingHistory() should skip the query
22 // for other forms of browsing history and just assume some such forms were 30 // for other forms of browsing history and just assume some such forms were
23 // found. Used only for testing. The default is false. 31 // found. Used only for testing. The default is false.
24 extern bool g_override_other_forms_of_browsing_history_query; 32 extern bool g_override_other_forms_of_browsing_history_query;
25 33
26 } 34 } // testing
27 35
28 // Whether the Clear Browsing Data UI should show a notice about the existence 36 // Whether the Clear Browsing Data UI should show a notice about the existence
29 // of other forms of browsing history stored in user's account. The response 37 // of other forms of browsing history stored in user's account. The response
30 // is returned in a |callback|. 38 // is returned in a |callback|.
31 void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( 39 void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
32 const ProfileSyncService* sync_service, 40 const sync_driver::SyncService* sync_service,
33 history::WebHistoryService* history_service, 41 history::WebHistoryService* history_service,
34 base::Callback<void(bool)> callback); 42 base::Callback<void(bool)> callback);
35 43
36 // Whether the Clear Browsing Data UI should popup a dialog with information 44 // Whether the Clear Browsing Data UI should popup a dialog with information
37 // about the existence of other forms of browsing history stored in user's 45 // about the existence of other forms of browsing history stored in user's
38 // account when the user deletes their browsing history for the first time. 46 // account when the user deletes their browsing history for the first time.
39 // The response is returned in a |callback|. 47 // The response is returned in a |callback|. The |channel| and |is_tablet|
48 // parameters must be provided for successful communication with the Sync
49 // server, but the result does not depend from them.
40 void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory( 50 void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory(
41 const ProfileSyncService* sync_service, 51 const sync_driver::SyncService* sync_service,
52 history::WebHistoryService* history_service,
53 version_info::Channel channel,
54 bool is_tablet,
sdefresne 2016/05/24 08:32:29 Since you already indirectly depends on ui/base (t
msramek 2016/05/24 12:03:00 Actually in that case, WebHistoryService itself ca
55 base::Callback<void(bool)> callback);
56
57 // A deprecated overloaded version of the above function called by iOS.
58 // TODO(msarda): Remove this when iOS calls the correct version.
sdefresne 2016/05/24 08:32:29 Can you create a bug and use the format "TODO(crbu
msramek 2016/05/24 12:03:00 Done. crbug.com/614319
59 void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory(
60 const sync_driver::SyncService* sync_service,
42 history::WebHistoryService* history_service, 61 history::WebHistoryService* history_service,
43 base::Callback<void(bool)> callback); 62 base::Callback<void(bool)> callback);
44 63
45 } // namespace browsing_data_ui 64 } // namespace browsing_data_ui
46 65
47 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ 66 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698