| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browsing_data_database_helper.h" | 7 #include "chrome/browser/browsing_data_database_helper.h" |
| 8 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 8 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
| 9 #include "chrome/browser/browsing_data_local_storage_helper.h" | 9 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Only set for type kCocoaCookieDetailsTypePromptLocalStorage. | 115 // Only set for type kCocoaCookieDetailsTypePromptLocalStorage. |
| 116 scoped_nsobject<NSString> localStorageKey_; | 116 scoped_nsobject<NSString> localStorageKey_; |
| 117 scoped_nsobject<NSString> localStorageValue_; | 117 scoped_nsobject<NSString> localStorageValue_; |
| 118 | 118 |
| 119 // Only set for type kCocoaCookieDetailsTypeTreeAppCache and | 119 // Only set for type kCocoaCookieDetailsTypeTreeAppCache and |
| 120 // kCocoaCookieDetailsTypePromptAppCache. | 120 // kCocoaCookieDetailsTypePromptAppCache. |
| 121 scoped_nsobject<NSString> manifestURL_; | 121 scoped_nsobject<NSString> manifestURL_; |
| 122 } | 122 } |
| 123 | 123 |
| 124 @property (nonatomic, readonly) BOOL canEditExpiration; | 124 @property(nonatomic, readonly) BOOL canEditExpiration; |
| 125 @property (nonatomic) BOOL hasExpiration; | 125 @property(nonatomic) BOOL hasExpiration; |
| 126 @property (nonatomic, readonly) CocoaCookieDetailsType type; | 126 @property(nonatomic, readonly) CocoaCookieDetailsType type; |
| 127 | 127 |
| 128 // The following methods are used in the bindings of subviews inside | 128 // The following methods are used in the bindings of subviews inside |
| 129 // the cookie detail view. Note that the method that tests the | 129 // the cookie detail view. Note that the method that tests the |
| 130 // visibility of the subview for cookie-specific information has a different | 130 // visibility of the subview for cookie-specific information has a different |
| 131 // polarity than the other visibility testing methods. This ensures that | 131 // polarity than the other visibility testing methods. This ensures that |
| 132 // this subview is shown when there is no selection in the cookie tree, | 132 // this subview is shown when there is no selection in the cookie tree, |
| 133 // because a hidden value of |false| is generated when the key value binding | 133 // because a hidden value of |false| is generated when the key value binding |
| 134 // is evaluated through a nil object. The other methods are bound using a | 134 // is evaluated through a nil object. The other methods are bound using a |
| 135 // |NSNegateBoolean| transformer, so that when there is a empty selection the | 135 // |NSNegateBoolean| transformer, so that when there is a empty selection the |
| 136 // hidden value is |true|. | 136 // hidden value is |true|. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 scoped_nsobject<CocoaCookieDetails> details_; | 215 scoped_nsobject<CocoaCookieDetails> details_; |
| 216 } | 216 } |
| 217 | 217 |
| 218 - (CocoaCookieDetails*)details; | 218 - (CocoaCookieDetails*)details; |
| 219 | 219 |
| 220 // The adapter assumes ownership of the details object | 220 // The adapter assumes ownership of the details object |
| 221 // in its initializer. | 221 // in its initializer. |
| 222 - (id)initWithDetails:(CocoaCookieDetails*)details; | 222 - (id)initWithDetails:(CocoaCookieDetails*)details; |
| 223 @end | 223 @end |
| 224 | 224 |
| OLD | NEW |