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_remover.h" | 10 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Keeps track of whether clearing LSO data is supported. | 77 // Keeps track of whether clearing LSO data is supported. |
78 BooleanPrefMember clear_plugin_lso_data_enabled_; | 78 BooleanPrefMember clear_plugin_lso_data_enabled_; |
79 | 79 |
80 // Keeps track of whether deleting browsing history and downloads is allowed. | 80 // Keeps track of whether deleting browsing history and downloads is allowed. |
81 BooleanPrefMember allow_deleting_browser_history_; | 81 BooleanPrefMember allow_deleting_browser_history_; |
82 | 82 |
83 // Counters that calculate the data volume for some of the data types. | 83 // Counters that calculate the data volume for some of the data types. |
84 ScopedVector<browsing_data::BrowsingDataCounter> counters_; | 84 ScopedVector<browsing_data::BrowsingDataCounter> counters_; |
85 | 85 |
86 // Informs us whether the user is syncing their data. | 86 // Informs us whether the user is syncing their data. |
87 ProfileSyncService* sync_service_; | 87 browser_sync::ProfileSyncService* sync_service_; |
88 | 88 |
89 // Whether we should show a notice about other forms of browsing history. | 89 // Whether we should show a notice about other forms of browsing history. |
90 bool should_show_history_notice_; | 90 bool should_show_history_notice_; |
91 | 91 |
92 // Whether we should popup a dialog about other forms of browsing history | 92 // Whether we should popup a dialog about other forms of browsing history |
93 // when the user deletes their browsing history for the first time. | 93 // when the user deletes their browsing history for the first time. |
94 bool should_show_history_deletion_dialog_; | 94 bool should_show_history_deletion_dialog_; |
95 | 95 |
96 // A weak pointer factory for asynchronous calls referencing this class. | 96 // A weak pointer factory for asynchronous calls referencing this class. |
97 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; | 97 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); | 99 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace options | 102 } // namespace options |
103 | 103 |
104 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 104 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
OLD | NEW |