| OLD | NEW |
| 1 // Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009-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_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 + (ClearBrowsingDataController*)controllerForProfile:(Profile*)profile; | 51 + (ClearBrowsingDataController*)controllerForProfile:(Profile*)profile; |
| 52 | 52 |
| 53 // Run the dialog with an application-modal event loop. If the user accepts, | 53 // Run the dialog with an application-modal event loop. If the user accepts, |
| 54 // performs the deletion of the selected browsing data. The values of the | 54 // performs the deletion of the selected browsing data. The values of the |
| 55 // checkboxes will be persisted into prefs for next time. | 55 // checkboxes will be persisted into prefs for next time. |
| 56 - (void)runModalDialog; | 56 - (void)runModalDialog; |
| 57 | 57 |
| 58 // IBActions for the dialog buttons | 58 // IBActions for the dialog buttons |
| 59 - (IBAction)clearData:(id)sender; | 59 - (IBAction)clearData:(id)sender; |
| 60 - (IBAction)cancel:(id)sender; | 60 - (IBAction)cancel:(id)sender; |
| 61 - (IBAction)openFlashPlayerSettings:(id)sender; |
| 61 | 62 |
| 62 // Properties for bindings | 63 // Properties for bindings |
| 63 @property BOOL clearBrowsingHistory; | 64 @property BOOL clearBrowsingHistory; |
| 64 @property BOOL clearDownloadHistory; | 65 @property BOOL clearDownloadHistory; |
| 65 @property BOOL emptyCache; | 66 @property BOOL emptyCache; |
| 66 @property BOOL deleteCookies; | 67 @property BOOL deleteCookies; |
| 67 @property BOOL clearSavedPasswords; | 68 @property BOOL clearSavedPasswords; |
| 68 @property BOOL clearFormData; | 69 @property BOOL clearFormData; |
| 69 @property NSInteger timePeriod; | 70 @property NSInteger timePeriod; |
| 70 @property BOOL isClearing; | 71 @property BOOL isClearing; |
| 71 | 72 |
| 72 @end | 73 @end |
| 73 | 74 |
| 74 | 75 |
| 75 @interface ClearBrowsingDataController (ExposedForUnitTests) | 76 @interface ClearBrowsingDataController (ExposedForUnitTests) |
| 76 // Create the controller with the given profile (which must not be NULL). | 77 // Create the controller with the given profile (which must not be NULL). |
| 77 - (id)initWithProfile:(Profile*)profile; | 78 - (id)initWithProfile:(Profile*)profile; |
| 78 @property (readonly) int removeMask; | 79 @property (readonly) int removeMask; |
| 79 - (void)persistToPrefs; | 80 - (void)persistToPrefs; |
| 80 - (void)closeDialog; | 81 - (void)closeDialog; |
| 81 - (void)dataRemoverDidFinish; | 82 - (void)dataRemoverDidFinish; |
| 82 @end | 83 @end |
| 83 | 84 |
| 84 #endif // CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ | 85 #endif // CHROME_BROWSER_COCOA_CLEAR_BROWSING_DATA_CONTROLLER_ |
| OLD | NEW |