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

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

Issue 523025: [Mac] Implement the cookie manager (Closed)
Patch Set: Address all comments Created 10 years, 11 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 | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/cookie_tree_node.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import <Cocoa/Cocoa.h>
6
7 #include "base/scoped_nsobject.h"
8 #include "chrome/browser/cookies_tree_model.h"
9
10 // This class is used by CookiesWindowController and represents a node in the
11 // cookie tree view.
12 @interface CocoaCookieTreeNode : NSObject {
13 scoped_nsobject<NSString> title_;
14 scoped_nsobject<NSMutableArray> children_;
15
16 // The platform-independent model node.
17 CookieTreeNode* treeNode_; // weak
18
19 // These members are only set for true cookie nodes.
20 BOOL isCookie_;
21 scoped_nsobject<NSString> name_;
22 scoped_nsobject<NSString> content_;
23 scoped_nsobject<NSString> domain_;
24 scoped_nsobject<NSString> path_;
25 scoped_nsobject<NSString> sendFor_;
26 // Stringifed dates.
27 scoped_nsobject<NSString> created_;
28 scoped_nsobject<NSString> expires_;
29 }
30
31 // Designated initializer.
32 - (id)initWithNode:(CookieTreeNode*)node;
33
34 // Re-sets all the members of the node based on |treeNode_|.
35 - (void)rebuild;
36
37 - (BOOL)isLeaf;
38
39 // Getters.
40 - (NSString*)title;
41 // |-children| is mutable so that the CookiesTreeModelObserverBridge can
42 // operate on the children.
43 - (NSMutableArray*)children;
44 - (TreeModelNode*)treeNode;
45
46 // Used only by cookies. Nil for non-cookie nodes.
47 - (BOOL)isCookie;
48 - (NSString*)name;
49 - (NSString*)content;
50 - (NSString*)domain;
51 - (NSString*)path;
52 - (NSString*)sendFor;
53 - (NSString*)created;
54 - (NSString*)expires;
55
56 @end
OLDNEW
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/cookie_tree_node.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698