OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/ui/cocoa/cookie_tree_node.h" | 5 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" |
6 | 6 |
7 #include "base/sys_string_conversions.h" | 7 #include "base/sys_string_conversions.h" |
8 | 8 |
9 @implementation CocoaCookieTreeNode | 9 @implementation CocoaCookieTreeNode |
10 | 10 |
11 - (id)initWithNode:(CookieTreeNode*)node { | 11 - (id)initWithNode:(CookieTreeNode*)node { |
12 if ((self = [super init])) { | 12 if ((self = [super init])) { |
13 DCHECK(node); | 13 DCHECK(node); |
14 treeNode_ = node; | 14 treeNode_ = node; |
15 [self rebuild]; | 15 [self rebuild]; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 @"<CocoaCookieTreeNode @ %p (title=%@, nodeType=%d, childCount=%u)"; | 64 @"<CocoaCookieTreeNode @ %p (title=%@, nodeType=%d, childCount=%u)"; |
65 return [NSString stringWithFormat:format, self, [self title], | 65 return [NSString stringWithFormat:format, self, [self title], |
66 [self nodeType], [[self children] count]]; | 66 [self nodeType], [[self children] count]]; |
67 } | 67 } |
68 | 68 |
69 - (CocoaCookieDetails*)details { | 69 - (CocoaCookieDetails*)details { |
70 return details_; | 70 return details_; |
71 } | 71 } |
72 | 72 |
73 @end | 73 @end |
OLD | NEW |