OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/memory/scoped_nsobject.h" | 7 #include "base/memory/scoped_nsobject.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 9 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" | 10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
11 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" | 11 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" |
12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
14 | 14 |
15 @class CollectedCookiesWindowController; | 15 @class CollectedCookiesWindowController; |
16 @class CookieDetailsViewController; | 16 @class CookieDetailsViewController; |
17 @class VerticalGradientView; | 17 @class VerticalGradientView; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class WebContents; | 20 class WebContents; |
21 } | 21 } |
22 | 22 |
23 // The constrained window delegate reponsible for managing the collected | 23 // The constrained window delegate reponsible for managing the collected |
24 // cookies dialog. | 24 // cookies dialog. |
25 class CollectedCookiesMac : public ConstrainedWindowMacDelegate, | 25 class CollectedCookiesMac : public ConstrainedWindowMacDelegate, |
26 public content::NotificationObserver { | 26 public content::NotificationObserver { |
27 public: | 27 public: |
28 CollectedCookiesMac(content::WebContents* web_contents); | 28 explicit CollectedCookiesMac(content::WebContents* web_contents); |
29 virtual ~CollectedCookiesMac(); | 29 virtual ~CollectedCookiesMac(); |
30 | 30 |
31 void PerformClose(); | 31 void PerformClose(); |
32 | 32 |
33 // ConstrainedWindowMacDelegate implementation. | 33 // ConstrainedWindowMacDelegate implementation. |
34 virtual void OnConstrainedWindowClosed( | 34 virtual void OnConstrainedWindowClosed( |
35 ConstrainedWindowMac* window) OVERRIDE; | 35 ConstrainedWindowMac* window) OVERRIDE; |
36 | 36 |
37 CollectedCookiesWindowController* sheet_controller() const { | 37 CollectedCookiesWindowController* sheet_controller() const { |
38 return sheet_controller_.get(); | 38 return sheet_controller_.get(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; | 133 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; |
134 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; | 134 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; |
135 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; | 135 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; |
136 | 136 |
137 // Returns the |allowedTreeModel_| and |blockedTreeModel_|. | 137 // Returns the |allowedTreeModel_| and |blockedTreeModel_|. |
138 - (CookiesTreeModel*)allowedTreeModel; | 138 - (CookiesTreeModel*)allowedTreeModel; |
139 - (CookiesTreeModel*)blockedTreeModel; | 139 - (CookiesTreeModel*)blockedTreeModel; |
140 | 140 |
141 - (void)loadTreeModelFromWebContents; | 141 - (void)loadTreeModelFromWebContents; |
142 @end | 142 @end |
OLD | NEW |