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

Unified Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h

Issue 7831051: content: Move collected cookies constrained window to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile failures for everyone\! Created 9 years, 4 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/ui/cocoa/content_settings/collected_cookies_mac.h
diff --git a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h
index 3151800cefcf7658933de7f31fe6730c1677f848..acb636e17154a47c9dade58ca085d06d831b2574 100644
--- a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h
+++ b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h
@@ -15,14 +15,14 @@
@class CollectedCookiesWindowController;
@class CookieDetailsViewController;
@class VerticalGradientView;
-class TabContents;
+class TabContentsWrapper;
// The constrained window delegate reponsible for managing the collected
// cookies dialog.
class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet,
public NotificationObserver {
public:
- CollectedCookiesMac(NSWindow* parent, TabContents* tab_contents);
+ CollectedCookiesMac(NSWindow* parent, TabContentsWrapper* wrapper);
void OnSheetDidEnd(NSWindow* sheet);
@@ -41,8 +41,6 @@ class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet,
ConstrainedWindow* window_;
- TabContents* tab_contents_;
-
CollectedCookiesWindowController* sheet_controller_;
DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac);
@@ -88,7 +86,7 @@ class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet,
scoped_nsobject<CookieDetailsViewController> detailsViewController_;
- TabContents* tabContents_; // weak
+ TabContentsWrapper* wrapper_; // weak
BOOL infoBarVisible_;
@@ -101,7 +99,7 @@ class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet,
@property(assign, nonatomic) BOOL blockedCookiesButtonsEnabled;
// Designated initializer. TabContents cannot be NULL.
-- (id)initWithTabContents:(TabContents*)tabContents;
+- (id)initWithTabContentsWrapper:(TabContentsWrapper*)wrapper;
// Closes the sheet and ends the modal loop. This will also cleanup the memory.
- (IBAction)closeSheet:(id)sender;
@@ -120,5 +118,5 @@ class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet,
- (CookiesTreeModel*)allowedTreeModel;
- (CookiesTreeModel*)blockedTreeModel;
-- (void)loadTreeModelFromTabContents;
+- (void)loadTreeModelFromTabContentsWrapper;
@end
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698