| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // 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. |
| 47 // The response is returned in a |callback|. The |channel| parameter | 47 // The response is returned in a |callback|. The |channel| parameter |
| 48 // must be provided for successful communication with the Sync server, but | 48 // must be provided for successful communication with the Sync server, but |
| 49 // the result does not depend on it. | 49 // the result does not depend on it. |
| 50 void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory( | 50 void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory( |
| 51 const sync_driver::SyncService* sync_service, | 51 const sync_driver::SyncService* sync_service, |
| 52 history::WebHistoryService* history_service, | 52 history::WebHistoryService* history_service, |
| 53 version_info::Channel channel, | 53 version_info::Channel channel, |
| 54 base::Callback<void(bool)> callback); | 54 base::Callback<void(bool)> callback); |
| 55 | 55 |
| 56 // A deprecated overloaded version of the above function called by iOS. | |
| 57 // TODO(crbug.com/614319): Remove this when iOS calls the correct version. | |
| 58 void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory( | |
| 59 const sync_driver::SyncService* sync_service, | |
| 60 history::WebHistoryService* history_service, | |
| 61 base::Callback<void(bool)> callback); | |
| 62 | |
| 63 } // namespace browsing_data_ui | 56 } // namespace browsing_data_ui |
| 64 | 57 |
| 65 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ | 58 #endif // COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_ |
| OLD | NEW |