OLD | NEW |
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/mac/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 "content/public/browser/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 } |
18 | 18 |
19 // This enum specifies the type of information contained in the | 19 // This enum specifies the type of information contained in the |
20 // cookie details. | 20 // cookie details. |
21 enum CocoaCookieDetailsType { | 21 enum CocoaCookieDetailsType { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 // Used for database details in the cookie prompt dialog. | 178 // Used for database details in the cookie prompt dialog. |
179 - (id)initWithDatabase:(const std::string&)domain | 179 - (id)initWithDatabase:(const std::string&)domain |
180 databaseName:(const base::string16&)databaseName | 180 databaseName:(const base::string16&)databaseName |
181 databaseDescription:(const base::string16&)databaseDescription | 181 databaseDescription:(const base::string16&)databaseDescription |
182 fileSize:(unsigned long)fileSize; | 182 fileSize:(unsigned long)fileSize; |
183 | 183 |
184 // -initWithAppCacheInfo: creates a cookie details with the manifest URL plus | 184 // -initWithAppCacheInfo: creates a cookie details with the manifest URL plus |
185 // all of this additional information that is available after an appcache is | 185 // all of this additional information that is available after an appcache is |
186 // actually created, including its creation date, size and last accessed time. | 186 // actually created, including its creation date, size and last accessed time. |
187 - (id)initWithAppCacheInfo:(const appcache::AppCacheInfo*)appcacheInfo; | 187 - (id)initWithAppCacheInfo:(const content::AppCacheInfo*)appcacheInfo; |
188 | 188 |
189 // Used for local storage details in the cookie prompt dialog. | 189 // Used for local storage details in the cookie prompt dialog. |
190 - (id)initWithLocalStorage:(const std::string&)domain | 190 - (id)initWithLocalStorage:(const std::string&)domain |
191 key:(const base::string16&)key | 191 key:(const base::string16&)key |
192 value:(const base::string16&)value; | 192 value:(const base::string16&)value; |
193 | 193 |
194 // -initWithAppCacheManifestURL: is called when the cookie prompt is displayed | 194 // -initWithAppCacheManifestURL: is called when the cookie prompt is displayed |
195 // for an appcache, at that time only the manifest URL of the appcache is known. | 195 // for an appcache, at that time only the manifest URL of the appcache is known. |
196 - (id)initWithAppCacheManifestURL:(const std::string&)manifestURL; | 196 - (id)initWithAppCacheManifestURL:(const std::string&)manifestURL; |
197 | 197 |
(...skipping 17 matching lines...) Expand all Loading... |
215 @private | 215 @private |
216 base::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 |
OLD | NEW |