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

Side by Side Diff: chrome/browser/ui/webui/options/clear_browser_data_handler.h

Issue 1813023002: Add a notice about other forms of history to the CBD dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_component
Patch Set: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "chrome/browser/browsing_data/browsing_data_counter.h" 10 #include "chrome/browser/browsing_data/browsing_data_counter.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Adds a |counter| for browsing data. 51 // Adds a |counter| for browsing data.
52 void AddCounter(scoped_ptr<BrowsingDataCounter> counter); 52 void AddCounter(scoped_ptr<BrowsingDataCounter> counter);
53 53
54 // Updates a counter in the UI according to the |result|. 54 // Updates a counter in the UI according to the |result|.
55 void UpdateCounterText(scoped_ptr<BrowsingDataCounter::Result> result); 55 void UpdateCounterText(scoped_ptr<BrowsingDataCounter::Result> result);
56 56
57 // Implementation of SyncServiceObserver. Updates the support string at the 57 // Implementation of SyncServiceObserver. Updates the support string at the
58 // bottom of the dialog. 58 // bottom of the dialog.
59 void OnStateChanged() override; 59 void OnStateChanged() override;
60 60
61 // Whether we should show the footer message informing the user about other
62 // forms of browsing history.
63 bool ShouldShowHistoryFooter();
64
61 // If non-null it means removal is in progress. 65 // If non-null it means removal is in progress.
62 BrowsingDataRemover* remover_; 66 BrowsingDataRemover* remover_;
63 67
64 // Keeps track of whether clearing LSO data is supported. 68 // Keeps track of whether clearing LSO data is supported.
65 BooleanPrefMember clear_plugin_lso_data_enabled_; 69 BooleanPrefMember clear_plugin_lso_data_enabled_;
66 70
67 // Keeps track of whether Pepper Flash is enabled and thus Flapper-specific 71 // Keeps track of whether Pepper Flash is enabled and thus Flapper-specific
68 // settings and removal options (e.g. Content Licenses) are available. 72 // settings and removal options (e.g. Content Licenses) are available.
69 BooleanPrefMember pepper_flash_settings_enabled_; 73 BooleanPrefMember pepper_flash_settings_enabled_;
70 74
71 // Keeps track of whether deleting browsing history and downloads is allowed. 75 // Keeps track of whether deleting browsing history and downloads is allowed.
72 BooleanPrefMember allow_deleting_browser_history_; 76 BooleanPrefMember allow_deleting_browser_history_;
73 77
74 // Counters that calculate the data volume for some of the data types. 78 // Counters that calculate the data volume for some of the data types.
75 ScopedVector<BrowsingDataCounter> counters_; 79 ScopedVector<BrowsingDataCounter> counters_;
76 80
77 // Informs us whether the user is syncing their data. 81 // Informs us whether the user is syncing their data.
78 ProfileSyncService* sync_service_; 82 ProfileSyncService* sync_service_;
79 83
80 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); 84 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
81 }; 85 };
82 86
83 } // namespace options 87 } // namespace options
84 88
85 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 89 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698