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

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

Issue 10837331: Options: s/options2/options/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wut Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER_H_
7
8 #include "chrome/browser/browsing_data/browsing_data_remover.h"
9 #include "chrome/browser/prefs/pref_member.h"
10 #include "chrome/browser/ui/webui/options2/options_ui.h"
11
12 namespace options {
13
14 // Clear browser data handler page UI handler.
15 class ClearBrowserDataHandler : public OptionsPageUIHandler,
16 public BrowsingDataRemover::Observer {
17 public:
18 ClearBrowserDataHandler();
19 virtual ~ClearBrowserDataHandler();
20
21 // OptionsPageUIHandler implementation.
22 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
23 virtual void InitializeHandler() OVERRIDE;
24
25 // WebUIMessageHandler implementation.
26 virtual void RegisterMessages() OVERRIDE;
27
28 private:
29 // Javascript callback to start clearing data.
30 void HandleClearBrowserData(const ListValue* value);
31
32 // BrowsingDataRemover::Observer implementation.
33 // Closes the dialog once all requested data has been removed.
34 virtual void OnBrowsingDataRemoverDone() OVERRIDE;
35
36 // If non-null it means removal is in progress. BrowsingDataRemover takes care
37 // of deleting itself when done.
38 BrowsingDataRemover* remover_;
39
40 // Keeps track of whether clearing LSO data is supported.
41 BooleanPrefMember clear_plugin_lso_data_enabled_;
42
43 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
44 };
45
46 } // namespace options
47
48 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698