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

Unified Diff: chrome/browser/cocoa/content_settings_dialog_controller.h

Issue 650124: Mac: Move prefs around in preparation for the content settings window. (Closed)
Patch Set: done? Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/content_settings_dialog_controller.h
diff --git a/chrome/browser/cocoa/content_settings_dialog_controller.h b/chrome/browser/cocoa/content_settings_dialog_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..b5512c71038d2683ea0774df3370349b172fbb7f
--- /dev/null
+++ b/chrome/browser/cocoa/content_settings_dialog_controller.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+#import "base/cocoa_protocols_mac.h"
+#include "chrome/common/content_settings_types.h"
+#include "chrome/browser/pref_member.h"
+
+class Profile;
+
+// This controller manages a dialog that lets the user manage the content
+// settings for several content setting types.
+@interface ContentSettingsDialogController
+ : NSWindowController<NSWindowDelegate> {
+ Profile* profile_; // weak
+ IntegerPrefMember lastSelectedTab_;
+}
+
+// Show the content settings dialog associated with the given profile (or the
+// original profile if this is an incognito profile). If no content settings
+// dialog exists for this profile, create one and show it. Any resulting
+// editor releases itself when closed.
++(id)showContentSettingsForType:(ContentSettingsType)settingsType
+ profile:(Profile*)profile;
+
+// Shows the cookies controller.
+- (IBAction)showCookies:(id)sender;
+
+@end

Powered by Google App Engine
This is Rietveld 408576698