Index: chrome/browser/ui/webui/options/clear_browser_data_handler.h |
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.h b/chrome/browser/ui/webui/options/clear_browser_data_handler.h |
index 44786bc08803c30c982073f3abe189e3eab6f95b..036cb164b6bd2df37550b710c66cdbf205ebb153 100644 |
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.h |
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.h |
@@ -58,6 +58,18 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler, |
// bottom of the dialog. |
void OnStateChanged() override; |
+ // Finds out whether we should show a notice informing the user about other |
+ // forms of browsing history. Responds with an asynchronous callback to |
+ // |UpdateHistoryNotice|. |
+ void RefreshHistoryNotice(); |
+ |
+ // Shows or hides the notice about other forms of browsing history. |
+ void UpdateHistoryNotice(bool show); |
+ |
+ // Remembers whether we should popup a dialog about other forms of browsing |
+ // history when the user deletes the history for the first time. |
+ void UpdateHistoryDeletionDialog(bool show); |
+ |
// If non-null it means removal is in progress. |
BrowsingDataRemover* remover_; |
@@ -77,6 +89,16 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler, |
// Informs us whether the user is syncing their data. |
ProfileSyncService* sync_service_; |
+ // Whether we should show a notice about other forms of browsing history. |
+ bool should_show_history_notice_; |
+ |
+ // Whether we should popup a dialog about other forms of browsing history |
+ // when the user deletes their browsing history for the first time. |
+ bool should_show_history_deletion_dialog_; |
+ |
+ // A weak pointer factory for asynchronous calls referencing this class. |
+ base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
}; |