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

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

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/mac/scoped_nsobject.h"
8 #include "chrome/browser/browsing_data/cookies_tree_model.h" 8 #include "chrome/browser/browsing_data/cookies_tree_model.h"
9 #include "chrome/browser/ui/cocoa/content_settings/cookie_details.h" 9 #include "chrome/browser/ui/cocoa/content_settings/cookie_details.h"
10 10
11 @interface CocoaCookieTreeNode : NSObject { 11 @interface CocoaCookieTreeNode : NSObject {
12 scoped_nsobject<NSString> title_; 12 base::scoped_nsobject<NSString> title_;
13 scoped_nsobject<NSMutableArray> children_; 13 base::scoped_nsobject<NSMutableArray> children_;
14 scoped_nsobject<CocoaCookieDetails> details_; 14 base::scoped_nsobject<CocoaCookieDetails> details_;
15 CookieTreeNode* treeNode_; // weak 15 CookieTreeNode* treeNode_; // weak
16 } 16 }
17 17
18 // Designated initializer. 18 // Designated initializer.
19 - (id)initWithNode:(CookieTreeNode*)node; 19 - (id)initWithNode:(CookieTreeNode*)node;
20 20
21 // Re-sets all the members of the node based on |treeNode_|. 21 // Re-sets all the members of the node based on |treeNode_|.
22 - (void)rebuild; 22 - (void)rebuild;
23 23
24 // Common getters.. 24 // Common getters..
25 - (NSString*)title; 25 - (NSString*)title;
26 - (CocoaCookieDetailsType)nodeType; 26 - (CocoaCookieDetailsType)nodeType;
27 - (ui::TreeModelNode*)treeNode; 27 - (ui::TreeModelNode*)treeNode;
28 28
29 // |-mutableChildren| exists so that the CookiesTreeModelObserverBridge can 29 // |-mutableChildren| exists so that the CookiesTreeModelObserverBridge can
30 // operate on the children. Note that this lazily creates children. 30 // operate on the children. Note that this lazily creates children.
31 - (NSMutableArray*)mutableChildren; 31 - (NSMutableArray*)mutableChildren;
32 - (NSArray*)children; 32 - (NSArray*)children;
33 - (BOOL)isLeaf; 33 - (BOOL)isLeaf;
34 34
35 - (CocoaCookieDetails*)details; 35 - (CocoaCookieDetails*)details;
36 36
37 @end 37 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698