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

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

Issue 1404793007: Restart the browsing data counters when the CBD dialog is opened. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a comment about parameters. Created 5 years, 2 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/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/prefs/pref_member.h" 9 #include "base/prefs/pref_member.h"
10 #include "chrome/browser/browsing_data/browsing_data_counter.h" 10 #include "chrome/browser/browsing_data/browsing_data_counter.h"
(...skipping 15 matching lines...) Expand all
26 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; 26 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
27 void InitializeHandler() override; 27 void InitializeHandler() override;
28 void InitializePage() override; 28 void InitializePage() override;
29 29
30 // WebUIMessageHandler implementation. 30 // WebUIMessageHandler implementation.
31 void RegisterMessages() override; 31 void RegisterMessages() override;
32 32
33 void UpdateInfoBannerVisibility(); 33 void UpdateInfoBannerVisibility();
34 34
35 private: 35 private:
36 // Javascript callback for when the CBD dialog is opened. The caller does
37 // not provide any parameters, so |value| is unused.
38 void OnPageOpened(const base::ListValue* value);
39
36 // Javascript callback to start clearing data. 40 // Javascript callback to start clearing data.
37 void HandleClearBrowserData(const base::ListValue* value); 41 void HandleClearBrowserData(const base::ListValue* value);
38 42
39 // BrowsingDataRemover::Observer implementation. 43 // BrowsingDataRemover::Observer implementation.
40 // Closes the dialog once all requested data has been removed. 44 // Closes the dialog once all requested data has been removed.
41 void OnBrowsingDataRemoverDone() override; 45 void OnBrowsingDataRemoverDone() override;
42 46
43 // Updates UI when the pref to allow clearing history changes. 47 // Updates UI when the pref to allow clearing history changes.
44 virtual void OnBrowsingHistoryPrefChanged(); 48 virtual void OnBrowsingHistoryPrefChanged();
45 49
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 83
80 // Informs us whether the user is syncing their data. 84 // Informs us whether the user is syncing their data.
81 ProfileSyncService* sync_service_; 85 ProfileSyncService* sync_service_;
82 86
83 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); 87 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
84 }; 88 };
85 89
86 } // namespace options 90 } // namespace options
87 91
88 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 92 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698