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

Side by Side Diff: chrome/browser/ui/cocoa/content_settings/cookie_details.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, 6 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) 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/mac/scoped_nsobject.h"
8 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" 8 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
9 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
10 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" 10 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
11 #include "webkit/browser/appcache/appcache_service.h" 11 #include "webkit/browser/appcache/appcache_service.h"
12 12
13 class CookieTreeNode; 13 class CookieTreeNode;
14 14
15 namespace net { 15 namespace net {
16 class CanonicalCookie; 16 class CanonicalCookie;
17 } 17 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Used for type kCocoaCookieDetailsTypeCookie to indicate whether 69 // Used for type kCocoaCookieDetailsTypeCookie to indicate whether
70 // it should be possible to edit the expiration. 70 // it should be possible to edit the expiration.
71 BOOL canEditExpiration_; 71 BOOL canEditExpiration_;
72 72
73 // Indicates whether a cookie has an explcit expiration. If not 73 // Indicates whether a cookie has an explcit expiration. If not
74 // it will expire with the session. 74 // it will expire with the session.
75 BOOL hasExpiration_; 75 BOOL hasExpiration_;
76 76
77 // Only set for type kCocoaCookieDetailsTypeCookie. 77 // Only set for type kCocoaCookieDetailsTypeCookie.
78 scoped_nsobject<NSString> content_; 78 base::scoped_nsobject<NSString> content_;
79 scoped_nsobject<NSString> path_; 79 base::scoped_nsobject<NSString> path_;
80 scoped_nsobject<NSString> sendFor_; 80 base::scoped_nsobject<NSString> sendFor_;
81 // Stringifed dates. 81 // Stringifed dates.
82 scoped_nsobject<NSString> expires_; 82 base::scoped_nsobject<NSString> expires_;
83 83
84 // Only set for type kCocoaCookieDetailsTypeCookie and 84 // Only set for type kCocoaCookieDetailsTypeCookie and
85 // kCocoaCookieDetailsTypeTreeAppCache nodes. 85 // kCocoaCookieDetailsTypeTreeAppCache nodes.
86 scoped_nsobject<NSString> created_; 86 base::scoped_nsobject<NSString> created_;
87 87
88 // Only set for types kCocoaCookieDetailsTypeCookie, and 88 // Only set for types kCocoaCookieDetailsTypeCookie, and
89 // kCocoaCookieDetailsTypePromptDatabase nodes. 89 // kCocoaCookieDetailsTypePromptDatabase nodes.
90 scoped_nsobject<NSString> name_; 90 base::scoped_nsobject<NSString> name_;
91 91
92 // Only set for type kCocoaCookieDetailsTypeTreeLocalStorage, 92 // Only set for type kCocoaCookieDetailsTypeTreeLocalStorage,
93 // kCocoaCookieDetailsTypeTreeDatabase, 93 // kCocoaCookieDetailsTypeTreeDatabase,
94 // kCocoaCookieDetailsTypePromptDatabase, 94 // kCocoaCookieDetailsTypePromptDatabase,
95 // kCocoaCookieDetailsTypeTreeIndexedDB, and 95 // kCocoaCookieDetailsTypeTreeIndexedDB, and
96 // kCocoaCookieDetailsTypeTreeAppCache nodes. 96 // kCocoaCookieDetailsTypeTreeAppCache nodes.
97 scoped_nsobject<NSString> fileSize_; 97 base::scoped_nsobject<NSString> fileSize_;
98 98
99 // Only set for types kCocoaCookieDetailsTypeTreeLocalStorage, 99 // Only set for types kCocoaCookieDetailsTypeTreeLocalStorage,
100 // kCocoaCookieDetailsTypeTreeDatabase, and 100 // kCocoaCookieDetailsTypeTreeDatabase, and
101 // kCocoaCookieDetailsTypeTreeIndexedDB nodes. 101 // kCocoaCookieDetailsTypeTreeIndexedDB nodes.
102 scoped_nsobject<NSString> lastModified_; 102 base::scoped_nsobject<NSString> lastModified_;
103 103
104 // Only set for type kCocoaCookieDetailsTypeTreeAppCache nodes. 104 // Only set for type kCocoaCookieDetailsTypeTreeAppCache nodes.
105 scoped_nsobject<NSString> lastAccessed_; 105 base::scoped_nsobject<NSString> lastAccessed_;
106 106
107 // Only set for type kCocoaCookieDetailsTypeCookie, 107 // Only set for type kCocoaCookieDetailsTypeCookie,
108 // kCocoaCookieDetailsTypePromptDatabase, 108 // kCocoaCookieDetailsTypePromptDatabase,
109 // kCocoaCookieDetailsTypePromptLocalStorage, and 109 // kCocoaCookieDetailsTypePromptLocalStorage, and
110 // kCocoaCookieDetailsTypeTreeIndexedDB nodes. 110 // kCocoaCookieDetailsTypeTreeIndexedDB nodes.
111 scoped_nsobject<NSString> domain_; 111 base::scoped_nsobject<NSString> domain_;
112 112
113 // Only set for type kCocoaCookieTreeNodeTypeDatabaseStorage and 113 // Only set for type kCocoaCookieTreeNodeTypeDatabaseStorage and
114 // kCocoaCookieDetailsTypePromptDatabase nodes. 114 // kCocoaCookieDetailsTypePromptDatabase nodes.
115 scoped_nsobject<NSString> databaseDescription_; 115 base::scoped_nsobject<NSString> databaseDescription_;
116 116
117 // Only set for type kCocoaCookieDetailsTypePromptLocalStorage. 117 // Only set for type kCocoaCookieDetailsTypePromptLocalStorage.
118 scoped_nsobject<NSString> localStorageKey_; 118 base::scoped_nsobject<NSString> localStorageKey_;
119 scoped_nsobject<NSString> localStorageValue_; 119 base::scoped_nsobject<NSString> localStorageValue_;
120 120
121 // Only set for type kCocoaCookieDetailsTypeTreeAppCache and 121 // Only set for type kCocoaCookieDetailsTypeTreeAppCache and
122 // kCocoaCookieDetailsTypePromptAppCache. 122 // kCocoaCookieDetailsTypePromptAppCache.
123 scoped_nsobject<NSString> manifestURL_; 123 base::scoped_nsobject<NSString> manifestURL_;
124 } 124 }
125 125
126 @property(nonatomic, readonly) BOOL canEditExpiration; 126 @property(nonatomic, readonly) BOOL canEditExpiration;
127 @property(nonatomic) BOOL hasExpiration; 127 @property(nonatomic) BOOL hasExpiration;
128 @property(nonatomic, readonly) CocoaCookieDetailsType type; 128 @property(nonatomic, readonly) CocoaCookieDetailsType type;
129 129
130 // The following methods are used in the bindings of subviews inside 130 // The following methods are used in the bindings of subviews inside
131 // the cookie detail view. Note that the method that tests the 131 // the cookie detail view. Note that the method that tests the
132 // visibility of the subview for cookie-specific information has a different 132 // visibility of the subview for cookie-specific information has a different
133 // polarity than the other visibility testing methods. This ensures that 133 // polarity than the other visibility testing methods. This ensures that
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 @end 206 @end
207 207
208 // The subpanes of the cookie details view expect to be able to bind to methods 208 // The subpanes of the cookie details view expect to be able to bind to methods
209 // through a key path in the form |content.details.xxxx|. This class serves as 209 // through a key path in the form |content.details.xxxx|. This class serves as
210 // an adapter that simply wraps a |CocoaCookieDetails| object. An instance of 210 // an adapter that simply wraps a |CocoaCookieDetails| object. An instance of
211 // this class is set as the content object for cookie details view's object 211 // this class is set as the content object for cookie details view's object
212 // controller so that key paths are properly resolved through to the 212 // controller so that key paths are properly resolved through to the
213 // |CocoaCookieDetails| object for the cookie prompt. 213 // |CocoaCookieDetails| object for the cookie prompt.
214 @interface CookiePromptContentDetailsAdapter : NSObject { 214 @interface CookiePromptContentDetailsAdapter : NSObject {
215 @private 215 @private
216 scoped_nsobject<CocoaCookieDetails> details_; 216 base::scoped_nsobject<CocoaCookieDetails> details_;
217 } 217 }
218 218
219 - (CocoaCookieDetails*)details; 219 - (CocoaCookieDetails*)details;
220 220
221 // The adapter assumes ownership of the details object 221 // The adapter assumes ownership of the details object
222 // in its initializer. 222 // in its initializer.
223 - (id)initWithDetails:(CocoaCookieDetails*)details; 223 - (id)initWithDetails:(CocoaCookieDetails*)details;
224 @end 224 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698