| OLD | NEW |
| (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 |
| OLD | NEW |