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 #include "chrome/browser/ui/cocoa/content_settings/cookie_details.h" | 5 #include "chrome/browser/ui/cocoa/content_settings/cookie_details.h" |
6 | 6 |
7 #import "base/i18n/time_formatting.h" | 7 #import "base/i18n/time_formatting.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 9 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
10 #include "grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| 11 #include "content/public/browser/appcache_service.h" |
11 #include "net/cookies/canonical_cookie.h" | 12 #include "net/cookies/canonical_cookie.h" |
12 #include "ui/base/l10n/l10n_util_mac.h" | 13 #include "ui/base/l10n/l10n_util_mac.h" |
13 #include "ui/base/text/bytes_formatting.h" | 14 #include "ui/base/text/bytes_formatting.h" |
14 #include "content/public/browser/appcache_service.h" | |
15 | 15 |
16 #pragma mark Cocoa Cookie Details | 16 #pragma mark Cocoa Cookie Details |
17 | 17 |
18 @implementation CocoaCookieDetails | 18 @implementation CocoaCookieDetails |
19 | 19 |
20 @synthesize canEditExpiration = canEditExpiration_; | 20 @synthesize canEditExpiration = canEditExpiration_; |
21 @synthesize hasExpiration = hasExpiration_; | 21 @synthesize hasExpiration = hasExpiration_; |
22 @synthesize type = type_; | 22 @synthesize type = type_; |
23 | 23 |
24 - (BOOL)shouldHideCookieDetailsView { | 24 - (BOOL)shouldHideCookieDetailsView { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 details_.reset([details retain]); | 321 details_.reset([details retain]); |
322 } | 322 } |
323 return self; | 323 return self; |
324 } | 324 } |
325 | 325 |
326 - (CocoaCookieDetails*)details { | 326 - (CocoaCookieDetails*)details { |
327 return details_.get(); | 327 return details_.get(); |
328 } | 328 } |
329 | 329 |
330 @end | 330 @end |
OLD | NEW |