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

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

Issue 5964008: Add UI to the Clear Browsing Data dialog to remove Flash LSO data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux compile fix Created 10 years 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_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/dom_ui/options/options_ui.h"
10 #include "chrome/browser/browsing_data_remover.h" 10 #include "chrome/browser/browsing_data_remover.h"
11 #include "chrome/browser/plugin_data_remover_helper.h"
11 12
12 // Clear browser data handler page UI handler. 13 // Clear browser data handler page UI handler.
13 class ClearBrowserDataHandler : public OptionsPageUIHandler, 14 class ClearBrowserDataHandler : public OptionsPageUIHandler,
14 public BrowsingDataRemover::Observer { 15 public BrowsingDataRemover::Observer {
15 public: 16 public:
16 ClearBrowserDataHandler(); 17 ClearBrowserDataHandler();
17 virtual ~ClearBrowserDataHandler(); 18 virtual ~ClearBrowserDataHandler();
18 19
19 // OptionsUIHandler implementation. 20 // OptionsUIHandler implementation.
21 virtual void Initialize();
22
20 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 23 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
21 24
22 // DOMMessageHandler implementation. 25 // DOMMessageHandler implementation.
23 virtual void RegisterMessages(); 26 virtual void RegisterMessages();
24 27
28 // NotificationObserver implementation.
29 virtual void Observe(NotificationType type,
30 const NotificationSource& source,
31 const NotificationDetails& details);
32
25 private: 33 private:
26 void HandleClearBrowserData(const ListValue* value); 34 void HandleClearBrowserData(const ListValue* value);
Evan Stade 2010/12/22 00:16:40 would you mind adding a comment here? it's hard at
Bernhard Bauer 2010/12/22 03:40:05 Done.
27 35
36 void UpdateClearPluginLSOData();
Evan Stade 2010/12/22 00:16:40 comment
Bernhard Bauer 2010/12/22 03:40:05 Done.
37
28 // Callback from BrowsingDataRemover. Closes the dialog. 38 // Callback from BrowsingDataRemover. Closes the dialog.
29 virtual void OnBrowsingDataRemoverDone(); 39 virtual void OnBrowsingDataRemoverDone();
30 40
31 // If non-null it means removal is in progress. BrowsingDataRemover takes care 41 // If non-null it means removal is in progress. BrowsingDataRemover takes care
32 // of deleting itself when done. 42 // of deleting itself when done.
33 BrowsingDataRemover* remover_; 43 BrowsingDataRemover* remover_;
44 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
Evan Stade 2010/12/22 00:16:40 comment, or at least vertically separate from |rem
Bernhard Bauer 2010/12/22 03:40:05 Done.
34 45
35 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); 46 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
36 }; 47 };
37 48
38 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 49 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698