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

Side by Side Diff: chrome/browser/dom_ui/clear_browser_data_handler.h

Issue 2856053: Implement the 'Clear Browser Data' dom-ui overlay.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DOM_UI_CLEAR_BROWSER_DATA_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_CLEAR_BROWSER_DATA_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_CLEAR_BROWSER_DATA_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_CLEAR_BROWSER_DATA_HANDLER_H_
7 7
8 #include "chrome/browser/dom_ui/options_ui.h" 8 #include "chrome/browser/dom_ui/options_ui.h"
9 #include "chrome/browser/browsing_data_remover.h"
9 10
10 // Chrome personal options page UI handler. 11 // Clear browser data handler page UI handler.
11 class ClearBrowserDataHandler : public OptionsPageUIHandler { 12 class ClearBrowserDataHandler : public OptionsPageUIHandler,
13 public BrowsingDataRemover::Observer {
12 public: 14 public:
13 ClearBrowserDataHandler(); 15 ClearBrowserDataHandler();
14 virtual ~ClearBrowserDataHandler(); 16 virtual ~ClearBrowserDataHandler();
15 17
16 // OptionsUIHandler implementation. 18 // OptionsUIHandler implementation.
17 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 19 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
18 20
21 // DOMMessageHandler implementation.
22 virtual void RegisterMessages();
23
19 private: 24 private:
25 void HandleClearBrowserData(const Value* value);
26
27 // Callback from BrowsingDataRemover. Closes the dialog.
28 virtual void OnBrowsingDataRemoverDone();
29
30 // If non-null it means removal is in progress. BrowsingDataRemover takes care
31 // of deleting itself when done.
32 BrowsingDataRemover* remover_;
33
20 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); 34 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
21 }; 35 };
22 36
23 #endif // CHROME_BROWSER_DOM_UI_CLEAR_BROWSER_DATA_HANDLER_H_ 37 #endif // CHROME_BROWSER_DOM_UI_CLEAR_BROWSER_DATA_HANDLER_H_
24 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698