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

Side by Side Diff: chrome/browser/cocoa/clear_browsing_data_controller.h

Issue 524026: Adds "Delete Local Storage" option to "Clear Browsing Data" for Windows and G... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ 5 #ifndef CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_
6 #define CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ 6 #define CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 // weak reference. 26 // weak reference.
27 BrowsingDataRemover* remover_; 27 BrowsingDataRemover* remover_;
28 scoped_ptr<ClearBrowsingObserver> observer_; 28 scoped_ptr<ClearBrowsingObserver> observer_;
29 BOOL isClearing_; // YES while clearing data is ongoing. 29 BOOL isClearing_; // YES while clearing data is ongoing.
30 30
31 // Values for checkboxes, kept in sync with bindings. These values get 31 // Values for checkboxes, kept in sync with bindings. These values get
32 // persisted into prefs if the user accepts the dialog. 32 // persisted into prefs if the user accepts the dialog.
33 BOOL clearBrowsingHistory_; 33 BOOL clearBrowsingHistory_;
34 BOOL clearDownloadHistory_; 34 BOOL clearDownloadHistory_;
35 BOOL emptyCache_; 35 BOOL emptyCache_;
36 BOOL deleteLocalStorage_;
36 BOOL deleteCookies_; 37 BOOL deleteCookies_;
37 BOOL clearSavedPasswords_; 38 BOOL clearSavedPasswords_;
38 BOOL clearFormData_; 39 BOOL clearFormData_;
39 NSInteger timePeriod_; 40 NSInteger timePeriod_;
40 } 41 }
41 42
42 // Show the clear browsing data window. Do not use |-initWithProfile:|, 43 // Show the clear browsing data window. Do not use |-initWithProfile:|,
43 // go through this instead so we don't end up with multiple instances. 44 // go through this instead so we don't end up with multiple instances.
44 + (void)showClearBrowsingDialogForProfile:(Profile*)profile; 45 + (void)showClearBrowsingDialogForProfile:(Profile*)profile;
45 + (ClearBrowsingDataController*)controllerForProfile:(Profile*)profile; 46 + (ClearBrowsingDataController*)controllerForProfile:(Profile*)profile;
46 47
47 // Run the dialog with an application-modal event loop. If the user accepts, 48 // Run the dialog with an application-modal event loop. If the user accepts,
48 // performs the deletion of the selected browsing data. The values of the 49 // performs the deletion of the selected browsing data. The values of the
49 // checkboxes will be persisted into prefs for next time. 50 // checkboxes will be persisted into prefs for next time.
50 - (void)runModalDialog; 51 - (void)runModalDialog;
51 52
52 // IBActions for the dialog buttons 53 // IBActions for the dialog buttons
53 - (IBAction)clearData:(id)sender; 54 - (IBAction)clearData:(id)sender;
54 - (IBAction)cancel:(id)sender; 55 - (IBAction)cancel:(id)sender;
55 56
56 // Properties for bindings 57 // Properties for bindings
57 @property BOOL clearBrowsingHistory; 58 @property BOOL clearBrowsingHistory;
58 @property BOOL clearDownloadHistory; 59 @property BOOL clearDownloadHistory;
59 @property BOOL emptyCache; 60 @property BOOL emptyCache;
61 @property BOOL deleteLocalStorage;
60 @property BOOL deleteCookies; 62 @property BOOL deleteCookies;
61 @property BOOL clearSavedPasswords; 63 @property BOOL clearSavedPasswords;
62 @property BOOL clearFormData; 64 @property BOOL clearFormData;
63 @property NSInteger timePeriod; 65 @property NSInteger timePeriod;
64 @property BOOL isClearing; 66 @property BOOL isClearing;
65 67
66 @end 68 @end
67 69
68 70
69 @interface ClearBrowsingDataController (ExposedForUnitTests) 71 @interface ClearBrowsingDataController (ExposedForUnitTests)
70 // Create the controller with the given profile (which must not be NULL). 72 // Create the controller with the given profile (which must not be NULL).
71 - (id)initWithProfile:(Profile*)profile; 73 - (id)initWithProfile:(Profile*)profile;
72 @property (readonly) int removeMask; 74 @property (readonly) int removeMask;
73 - (void)persistToPrefs; 75 - (void)persistToPrefs;
74 - (void)closeDialog; 76 - (void)closeDialog;
75 @end 77 @end
76 78
77 #endif // CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ 79 #endif // CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/cocoa/clear_browsing_data_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698