OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Remembers whether we should popup a dialog about other forms of browsing | 69 // Remembers whether we should popup a dialog about other forms of browsing |
70 // history when the user deletes the history for the first time. | 70 // history when the user deletes the history for the first time. |
71 void UpdateHistoryDeletionDialog(bool show); | 71 void UpdateHistoryDeletionDialog(bool show); |
72 | 72 |
73 // If non-null it means removal is in progress. | 73 // If non-null it means removal is in progress. |
74 BrowsingDataRemover* remover_; | 74 BrowsingDataRemover* remover_; |
75 | 75 |
76 // Keeps track of whether clearing LSO data is supported. | 76 // Keeps track of whether clearing LSO data is supported. |
77 BooleanPrefMember clear_plugin_lso_data_enabled_; | 77 BooleanPrefMember clear_plugin_lso_data_enabled_; |
78 | 78 |
79 // Keeps track of whether Pepper Flash is enabled and thus Flapper-specific | |
80 // settings and removal options (e.g. Content Licenses) are available. | |
81 BooleanPrefMember pepper_flash_settings_enabled_; | |
82 | |
83 // Keeps track of whether deleting browsing history and downloads is allowed. | 79 // Keeps track of whether deleting browsing history and downloads is allowed. |
84 BooleanPrefMember allow_deleting_browser_history_; | 80 BooleanPrefMember allow_deleting_browser_history_; |
85 | 81 |
86 // Counters that calculate the data volume for some of the data types. | 82 // Counters that calculate the data volume for some of the data types. |
87 ScopedVector<BrowsingDataCounter> counters_; | 83 ScopedVector<BrowsingDataCounter> counters_; |
88 | 84 |
89 // Informs us whether the user is syncing their data. | 85 // Informs us whether the user is syncing their data. |
90 ProfileSyncService* sync_service_; | 86 ProfileSyncService* sync_service_; |
91 | 87 |
92 // Whether we should show a notice about other forms of browsing history. | 88 // Whether we should show a notice about other forms of browsing history. |
93 bool should_show_history_notice_; | 89 bool should_show_history_notice_; |
94 | 90 |
95 // Whether we should popup a dialog about other forms of browsing history | 91 // Whether we should popup a dialog about other forms of browsing history |
96 // when the user deletes their browsing history for the first time. | 92 // when the user deletes their browsing history for the first time. |
97 bool should_show_history_deletion_dialog_; | 93 bool should_show_history_deletion_dialog_; |
98 | 94 |
99 // A weak pointer factory for asynchronous calls referencing this class. | 95 // A weak pointer factory for asynchronous calls referencing this class. |
100 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; | 96 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; |
101 | 97 |
102 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); | 98 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
103 }; | 99 }; |
104 | 100 |
105 } // namespace options | 101 } // namespace options |
106 | 102 |
107 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 103 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
OLD | NEW |