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

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

Issue 10785017: Move CanonicalCookie into separate files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing include Created 8 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) 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/memory/scoped_nsobject.h"
8 #include "chrome/browser/browsing_data_database_helper.h" 8 #include "chrome/browser/browsing_data_database_helper.h"
9 #include "chrome/browser/browsing_data_indexed_db_helper.h" 9 #include "chrome/browser/browsing_data_indexed_db_helper.h"
10 #include "chrome/browser/browsing_data_local_storage_helper.h" 10 #include "chrome/browser/browsing_data_local_storage_helper.h"
11 #include "net/cookies/cookie_monster.h"
12 #include "webkit/appcache/appcache_service.h" 11 #include "webkit/appcache/appcache_service.h"
13 12
14 class CookieTreeNode; 13 class CookieTreeNode;
15 14
15 namespace net {
16 class CanonicalCookie;
17 }
18
16 // This enum specifies the type of information contained in the 19 // This enum specifies the type of information contained in the
17 // cookie details. 20 // cookie details.
18 enum CocoaCookieDetailsType { 21 enum CocoaCookieDetailsType {
19 // Represents grouping of cookie data, used in the cookie tree. 22 // Represents grouping of cookie data, used in the cookie tree.
20 kCocoaCookieDetailsTypeFolder = 0, 23 kCocoaCookieDetailsTypeFolder = 0,
21 24
22 // Detailed information about a cookie, used both in the cookie 25 // Detailed information about a cookie, used both in the cookie
23 // tree and the cookie prompt. 26 // tree and the cookie prompt.
24 kCocoaCookieDetailsTypeCookie, 27 kCocoaCookieDetailsTypeCookie,
25 28
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 - (NSString*)lastAccessed; 157 - (NSString*)lastAccessed;
155 - (NSString*)databaseDescription; 158 - (NSString*)databaseDescription;
156 - (NSString*)localStorageKey; 159 - (NSString*)localStorageKey;
157 - (NSString*)localStorageValue; 160 - (NSString*)localStorageValue;
158 - (NSString*)manifestURL; 161 - (NSString*)manifestURL;
159 162
160 // Used for folders in the cookie tree. 163 // Used for folders in the cookie tree.
161 - (id)initAsFolder; 164 - (id)initAsFolder;
162 165
163 // Used for cookie details in both the cookie tree and the cookie prompt dialog. 166 // Used for cookie details in both the cookie tree and the cookie prompt dialog.
164 - (id)initWithCookie:(const net::CookieMonster::CanonicalCookie*)treeNode 167 - (id)initWithCookie:(const net::CanonicalCookie*)treeNode
165 canEditExpiration:(BOOL)canEditExpiration; 168 canEditExpiration:(BOOL)canEditExpiration;
166 169
167 // Used for database details in the cookie tree. 170 // Used for database details in the cookie tree.
168 - (id)initWithDatabase: 171 - (id)initWithDatabase:
169 (const BrowsingDataDatabaseHelper::DatabaseInfo*)databaseInfo; 172 (const BrowsingDataDatabaseHelper::DatabaseInfo*)databaseInfo;
170 173
171 // Used for local storage details in the cookie tree. 174 // Used for local storage details in the cookie tree.
172 - (id)initWithLocalStorage: 175 - (id)initWithLocalStorage:
173 (const BrowsingDataLocalStorageHelper::LocalStorageInfo*)localStorageInfo; 176 (const BrowsingDataLocalStorageHelper::LocalStorageInfo*)localStorageInfo;
174 177
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 @private 215 @private
213 scoped_nsobject<CocoaCookieDetails> details_; 216 scoped_nsobject<CocoaCookieDetails> details_;
214 } 217 }
215 218
216 - (CocoaCookieDetails*)details; 219 - (CocoaCookieDetails*)details;
217 220
218 // The adapter assumes ownership of the details object 221 // The adapter assumes ownership of the details object
219 // in its initializer. 222 // in its initializer.
220 - (id)initWithDetails:(CocoaCookieDetails*)details; 223 - (id)initWithDetails:(CocoaCookieDetails*)details;
221 @end 224 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698