| 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_local_storage_helper.h" | 8 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 10 #include "net/base/cookie_monster.h" | 10 #include "net/base/cookie_monster.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Used only for type kCocoaCookieDetailsTypePromptLocalStorage. | 107 // Used only for type kCocoaCookieDetailsTypePromptLocalStorage. |
| 108 scoped_nsobject<NSString> localStorageKey_; | 108 scoped_nsobject<NSString> localStorageKey_; |
| 109 scoped_nsobject<NSString> localStorageValue_; | 109 scoped_nsobject<NSString> localStorageValue_; |
| 110 | 110 |
| 111 // Used only for type kCocoaCookieDetailsTypeTreeAppCache and | 111 // Used only for type kCocoaCookieDetailsTypeTreeAppCache and |
| 112 // kCocoaCookieDetailsTypePromptAppCache. | 112 // kCocoaCookieDetailsTypePromptAppCache. |
| 113 scoped_nsobject<NSString> manifestURL_; | 113 scoped_nsobject<NSString> manifestURL_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 @property (readonly) BOOL canEditExpiration; | 116 @property (nonatomic, readonly) BOOL canEditExpiration; |
| 117 @property BOOL hasExpiration; | 117 @property (nonatomic) BOOL hasExpiration; |
| 118 @property (readonly) CocoaCookieDetailsType type; | 118 @property (nonatomic, readonly) CocoaCookieDetailsType type; |
| 119 | 119 |
| 120 // The following methods are used in the bindings of subviews inside | 120 // The following methods are used in the bindings of subviews inside |
| 121 // the cookie detail view. Note that the method that tests the | 121 // the cookie detail view. Note that the method that tests the |
| 122 // visibility of the subview for cookie-specific information has a different | 122 // visibility of the subview for cookie-specific information has a different |
| 123 // polarity than the other visibility testing methods. This ensures that | 123 // polarity than the other visibility testing methods. This ensures that |
| 124 // this subview is shown when there is no selection in the cookie tree, | 124 // this subview is shown when there is no selection in the cookie tree, |
| 125 // because a hidden value of |false| is generated when the key value binding | 125 // because a hidden value of |false| is generated when the key value binding |
| 126 // is evaluated through a nil object. The other methods are bound using a | 126 // is evaluated through a nil object. The other methods are bound using a |
| 127 // |NSNegateBoolean| transformer, so that when there is a empty selection the | 127 // |NSNegateBoolean| transformer, so that when there is a empty selection the |
| 128 // hidden value is |true|. | 128 // hidden value is |true|. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 scoped_nsobject<CocoaCookieDetails> details_; | 207 scoped_nsobject<CocoaCookieDetails> details_; |
| 208 } | 208 } |
| 209 | 209 |
| 210 - (CocoaCookieDetails*)details; | 210 - (CocoaCookieDetails*)details; |
| 211 | 211 |
| 212 // The adapter assumes ownership of the details object | 212 // The adapter assumes ownership of the details object |
| 213 // in its initializer. | 213 // in its initializer. |
| 214 - (id)initWithDetails:(CocoaCookieDetails*)details; | 214 - (id)initWithDetails:(CocoaCookieDetails*)details; |
| 215 @end | 215 @end |
| 216 | 216 |
| OLD | NEW |