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/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" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 (const BrowsingDataLocalStorageHelper::LocalStorageInfo*)localStorageInfo; | 174 (const BrowsingDataLocalStorageHelper::LocalStorageInfo*)localStorageInfo; |
175 | 175 |
176 // Used for database details in the cookie prompt dialog. | 176 // Used for database details in the cookie prompt dialog. |
177 - (id)initWithDatabase:(const std::string&)domain | 177 - (id)initWithDatabase:(const std::string&)domain |
178 databaseName:(const string16&)databaseName | 178 databaseName:(const string16&)databaseName |
179 databaseDescription:(const string16&)databaseDescription | 179 databaseDescription:(const string16&)databaseDescription |
180 fileSize:(unsigned long)fileSize; | 180 fileSize:(unsigned long)fileSize; |
181 | 181 |
182 // -initWithAppCacheInfo: creates a cookie details with the manifest URL plus | 182 // -initWithAppCacheInfo: creates a cookie details with the manifest URL plus |
183 // all of this additional information that is available after an appcache is | 183 // all of this additional information that is available after an appcache is |
184 // actually created, including it's creation date, size and last accessed time. | 184 // actually created, including its creation date, size and last accessed time. |
185 - (id)initWithAppCacheInfo:(const appcache::AppCacheInfo*)appcacheInfo; | 185 - (id)initWithAppCacheInfo:(const appcache::AppCacheInfo*)appcacheInfo; |
186 | 186 |
187 // Used for local storage details in the cookie prompt dialog. | 187 // Used for local storage details in the cookie prompt dialog. |
188 - (id)initWithLocalStorage:(const std::string&)domain | 188 - (id)initWithLocalStorage:(const std::string&)domain |
189 key:(const string16&)key | 189 key:(const string16&)key |
190 value:(const string16&)value; | 190 value:(const string16&)value; |
191 | 191 |
192 // -initWithAppCacheManifestURL: is called when the cookie prompt is displayed | 192 // -initWithAppCacheManifestURL: is called when the cookie prompt is displayed |
193 // for an appcache, at that time only the manifest URL of the appcache is known. | 193 // for an appcache, at that time only the manifest URL of the appcache is known. |
194 - (id)initWithAppCacheManifestURL:(const std::string&)manifestURL; | 194 - (id)initWithAppCacheManifestURL:(const std::string&)manifestURL; |
(...skipping 18 matching lines...) Expand all Loading... |
213 @private | 213 @private |
214 scoped_nsobject<CocoaCookieDetails> details_; | 214 scoped_nsobject<CocoaCookieDetails> details_; |
215 } | 215 } |
216 | 216 |
217 - (CocoaCookieDetails*)details; | 217 - (CocoaCookieDetails*)details; |
218 | 218 |
219 // The adapter assumes ownership of the details object | 219 // The adapter assumes ownership of the details object |
220 // in its initializer. | 220 // in its initializer. |
221 - (id)initWithDetails:(CocoaCookieDetails*)details; | 221 - (id)initWithDetails:(CocoaCookieDetails*)details; |
222 @end | 222 @end |
OLD | NEW |