OLD | NEW |
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 10 matching lines...) Expand all Loading... |
21 @interface ClearBrowsingDataController : NSWindowController { | 21 @interface ClearBrowsingDataController : NSWindowController { |
22 @private | 22 @private |
23 Profile* profile_; // Weak, owned by browser. | 23 Profile* profile_; // Weak, owned by browser. |
24 // If non-null means there is a removal in progress. Member used mainly for | 24 // If non-null means there is a removal in progress. Member used mainly for |
25 // automated tests. The remove deletes itself when it's done, so this is a | 25 // automated tests. The remove deletes itself when it's done, so this is a |
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 IBOutlet ThrobberView* progress_; | 30 IBOutlet ThrobberView* progress_; |
31 | 31 |
32 // Values for checkboxes, kept in sync with bindings. These values get | 32 // Values for checkboxes, kept in sync with bindings. These values get |
33 // persisted into prefs if the user accepts the dialog. | 33 // persisted into prefs if the user accepts the dialog. |
34 BOOL clearBrowsingHistory_; | 34 BOOL clearBrowsingHistory_; |
35 BOOL clearDownloadHistory_; | 35 BOOL clearDownloadHistory_; |
36 BOOL emptyCache_; | 36 BOOL emptyCache_; |
37 BOOL deleteCookies_; | 37 BOOL deleteCookies_; |
38 BOOL clearSavedPasswords_; | 38 BOOL clearSavedPasswords_; |
39 BOOL clearFormData_; | 39 BOOL clearFormData_; |
40 NSInteger timePeriod_; | 40 NSInteger timePeriod_; |
41 } | 41 } |
(...skipping 15 matching lines...) Expand all Loading... |
57 @property BOOL clearDownloadHistory; | 57 @property BOOL clearDownloadHistory; |
58 @property BOOL emptyCache; | 58 @property BOOL emptyCache; |
59 @property BOOL deleteCookies; | 59 @property BOOL deleteCookies; |
60 @property BOOL clearSavedPasswords; | 60 @property BOOL clearSavedPasswords; |
61 @property BOOL clearFormData; | 61 @property BOOL clearFormData; |
62 @property NSInteger timePeriod; | 62 @property NSInteger timePeriod; |
63 @property BOOL isClearing; | 63 @property BOOL isClearing; |
64 | 64 |
65 @end | 65 @end |
66 | 66 |
| 67 |
| 68 @interface ClearBrowsingDataController (ExposedForUnitTests) |
| 69 @property (readonly) int removeMask; |
| 70 - (void)persistToPrefs; |
| 71 @end |
| 72 |
67 #endif // CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ | 73 #endif // CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ |
OLD | NEW |