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

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

Issue 2963006: Remove the cookie prompt from the settings UI and migrate prefs from ask to block. (Closed)
Patch Set: updates Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/content_exceptions_window_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/cocoa_protocols_mac.h" 9 #include "base/cocoa_protocols_mac.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 13 matching lines...) Expand all
24 IBOutlet NSButton* addButton_; 24 IBOutlet NSButton* addButton_;
25 IBOutlet NSButton* removeButton_; 25 IBOutlet NSButton* removeButton_;
26 IBOutlet NSButton* removeAllButton_; 26 IBOutlet NSButton* removeAllButton_;
27 IBOutlet NSButton* doneButton_; 27 IBOutlet NSButton* doneButton_;
28 28
29 ContentSettingsType settingsType_; 29 ContentSettingsType settingsType_;
30 HostContentSettingsMap* settingsMap_; // weak 30 HostContentSettingsMap* settingsMap_; // weak
31 HostContentSettingsMap* otrSettingsMap_; // weak 31 HostContentSettingsMap* otrSettingsMap_; // weak
32 scoped_ptr<ContentExceptionsTableModel> model_; 32 scoped_ptr<ContentExceptionsTableModel> model_;
33 33
34 // Is set if "Ask" should be a valid option in the "action" popup. 34 // Is set if "Session" should be a valid option in the "action" popup.
35 BOOL showAsk_; 35 BOOL showSession_;
36 36
37 // Is set if adding and editing exceptions for the current OTR session should 37 // Is set if adding and editing exceptions for the current OTR session should
38 // be allowed. 38 // be allowed.
39 BOOL otrAllowed_; 39 BOOL otrAllowed_;
40 40
41 // Listens for changes to the content settings and reloads the data when they 41 // Listens for changes to the content settings and reloads the data when they
42 // change. See comment in -modelDidChange in the mm file for details. 42 // change. See comment in -modelDidChange in the mm file for details.
43 scoped_ptr<UpdatingContentSettingsObserver> tableObserver_; 43 scoped_ptr<UpdatingContentSettingsObserver> tableObserver_;
44 44
45 // If this is set to NO, notifications by |tableObserver_| are ignored. This 45 // If this is set to NO, notifications by |tableObserver_| are ignored. This
(...skipping 22 matching lines...) Expand all
68 - (IBAction)removeAllExceptions:(id)sender; 68 - (IBAction)removeAllExceptions:(id)sender;
69 // Closes the sheet and ends the modal loop. 69 // Closes the sheet and ends the modal loop.
70 - (IBAction)closeSheet:(id)sender; 70 - (IBAction)closeSheet:(id)sender;
71 71
72 @end 72 @end
73 73
74 @interface ContentExceptionsWindowController(VisibleForTesting) 74 @interface ContentExceptionsWindowController(VisibleForTesting)
75 - (void)cancel:(id)sender; 75 - (void)cancel:(id)sender;
76 - (BOOL)editingNewException; 76 - (BOOL)editingNewException;
77 @end 77 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/content_exceptions_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698