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

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

Issue 6469067: WebUI: Move chrome/browser/dom_ui/options/ to chrome/browser/webui/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mac files Created 9 years, 10 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) 2011 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_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/options/options_ui.h" 9 #include "chrome/browser/webui/options/clear_browser_data_handler.h"
10 #include "chrome/browser/browsing_data_remover.h" 10 // TODO(tfarina): remove this file once all includes have been updated.
11 #include "chrome/browser/plugin_data_remover_helper.h"
12
13 // Clear browser data handler page UI handler.
14 class ClearBrowserDataHandler : public OptionsPageUIHandler,
15 public BrowsingDataRemover::Observer {
16 public:
17 ClearBrowserDataHandler();
18 virtual ~ClearBrowserDataHandler();
19
20 // OptionsUIHandler implementation.
21 virtual void Initialize();
22
23 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
24
25 // WebUIMessageHandler implementation.
26 virtual void RegisterMessages();
27
28 // NotificationObserver implementation.
29 virtual void Observe(NotificationType type,
30 const NotificationSource& source,
31 const NotificationDetails& details);
32
33 private:
34 // Javascript callback to start clearing data.
35 void HandleClearBrowserData(const ListValue* value);
36
37 // Updates the UI to reflect whether clearing LSO data is supported.
38 void UpdateClearPluginLSOData();
39
40 // Callback from BrowsingDataRemover. Closes the dialog.
41 virtual void OnBrowsingDataRemoverDone();
42
43 // If non-null it means removal is in progress. BrowsingDataRemover takes care
44 // of deleting itself when done.
45 BrowsingDataRemover* remover_;
46
47 // Used for asynchronously updating the preference stating whether clearing
48 // LSO data is supported.
49 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
50
51 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
52 };
53 11
54 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 12 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/certificate_manager_handler.h ('k') | chrome/browser/dom_ui/options/content_settings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698