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/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" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 - (id)initWithLocalStorage:(const std::string&)domain | 190 - (id)initWithLocalStorage:(const std::string&)domain |
191 key:(const string16&)key | 191 key:(const string16&)key |
192 value:(const string16&)value; | 192 value:(const 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 |
198 // Used for IndexedDB details in the cookie tree. | 198 // Used for IndexedDB details in the cookie tree. |
199 - (id)initWithIndexedDBInfo: | 199 - (id)initWithIndexedDBInfo: |
200 (const BrowsingDataIndexedDBHelper::IndexedDBInfo*)indexedDB; | 200 (const content::IndexedDBInfo*)indexedDB; |
201 | 201 |
202 // A factory method to create a configured instance given a node from | 202 // A factory method to create a configured instance given a node from |
203 // the cookie tree in |treeNode|. | 203 // the cookie tree in |treeNode|. |
204 + (CocoaCookieDetails*)createFromCookieTreeNode:(CookieTreeNode*)treeNode; | 204 + (CocoaCookieDetails*)createFromCookieTreeNode:(CookieTreeNode*)treeNode; |
205 | 205 |
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 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 |