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

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

Issue 10502015: Adding "Clear hosted app data" checkbox to browsing data removal UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing? Created 8 years, 6 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) 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_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/browsing_data_remover.h" 9 #include "chrome/browser/browsing_data_remover.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
(...skipping 15 matching lines...) Expand all
26 // WebUIMessageHandler implementation. 26 // WebUIMessageHandler implementation.
27 virtual void RegisterMessages() OVERRIDE; 27 virtual void RegisterMessages() OVERRIDE;
28 28
29 private: 29 private:
30 // Javascript callback to start clearing data. 30 // Javascript callback to start clearing data.
31 void HandleClearBrowserData(const ListValue* value); 31 void HandleClearBrowserData(const ListValue* value);
32 32
33 // Callback from BrowsingDataRemover. Closes the dialog. 33 // Callback from BrowsingDataRemover. Closes the dialog.
34 virtual void OnBrowsingDataRemoverDone() OVERRIDE; 34 virtual void OnBrowsingDataRemoverDone() OVERRIDE;
35 35
36 // Clears the data of hosted apps, which is usually protected from deletion
markusheintz_ 2012/06/04 14:50:52 nit: Does "usually" mean: A) always protected B) s
Mike West 2012/06/05 08:55:02 Changed to "otherwise", which I think makes things
37 // when the user clears regular browsing data.
38 void HandleClearHostedAppData();
39
36 // If non-null it means removal is in progress. BrowsingDataRemover takes care 40 // If non-null it means removal is in progress. BrowsingDataRemover takes care
37 // of deleting itself when done. 41 // of deleting itself when done.
38 BrowsingDataRemover* remover_; 42 BrowsingDataRemover* remover_;
39 43
40 // Keeps track of whether clearing LSO data is supported. 44 // Keeps track of whether clearing LSO data is supported.
41 BooleanPrefMember clear_plugin_lso_data_enabled_; 45 BooleanPrefMember clear_plugin_lso_data_enabled_;
42 46
47 // Indicates that we also need to delete hosted app data after finishing the
48 // first removal operation.
49 bool remove_hosted_app_data_pending_;
50
43 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); 51 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
44 }; 52 };
45 53
46 } // namespace options2 54 } // namespace options2
47 55
48 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_ 56 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698