| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ios/net/cookies/cookie_store_ios.h" | 5 #include "ios/net/cookies/cookie_store_ios.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 const GURL& url, | 442 const GURL& url, |
| 443 const std::string& name, | 443 const std::string& name, |
| 444 const std::string& value, | 444 const std::string& value, |
| 445 const std::string& domain, | 445 const std::string& domain, |
| 446 const std::string& path, | 446 const std::string& path, |
| 447 base::Time creation_time, | 447 base::Time creation_time, |
| 448 base::Time expiration_time, | 448 base::Time expiration_time, |
| 449 base::Time last_access_time, | 449 base::Time last_access_time, |
| 450 bool secure, | 450 bool secure, |
| 451 bool http_only, | 451 bool http_only, |
| 452 bool same_site, | 452 CookieSameSite same_site, |
| 453 bool enforce_strict_secure, | 453 bool enforce_strict_secure, |
| 454 CookiePriority priority, | 454 CookiePriority priority, |
| 455 const SetCookiesCallback& callback) { | 455 const SetCookiesCallback& callback) { |
| 456 DCHECK(thread_checker_.CalledOnValidThread()); | 456 DCHECK(thread_checker_.CalledOnValidThread()); |
| 457 | 457 |
| 458 switch (synchronization_state_) { | 458 switch (synchronization_state_) { |
| 459 case NOT_SYNCHRONIZED: | 459 case NOT_SYNCHRONIZED: |
| 460 cookie_monster_->SetCookieWithDetailsAsync( | 460 cookie_monster_->SetCookieWithDetailsAsync( |
| 461 url, name, value, domain, path, creation_time, expiration_time, | 461 url, name, value, domain, path, creation_time, expiration_time, |
| 462 last_access_time, secure, http_only, same_site, enforce_strict_secure, | 462 last_access_time, secure, http_only, same_site, enforce_strict_secure, |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 weak_factory_.GetWeakPtr(), callback); | 1153 weak_factory_.GetWeakPtr(), callback); |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 base::Closure CookieStoreIOS::WrapClosure(const base::Closure& callback) { | 1156 base::Closure CookieStoreIOS::WrapClosure(const base::Closure& callback) { |
| 1157 DCHECK(thread_checker_.CalledOnValidThread()); | 1157 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1158 return base::Bind(&CookieStoreIOS::UpdateCachesAfterClosure, | 1158 return base::Bind(&CookieStoreIOS::UpdateCachesAfterClosure, |
| 1159 weak_factory_.GetWeakPtr(), callback); | 1159 weak_factory_.GetWeakPtr(), callback); |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 } // namespace net | 1162 } // namespace net |
| OLD | NEW |