| 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 | 8 |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 store_->GetAllCookiesAsync(callback); | 127 store_->GetAllCookiesAsync(callback); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void DeleteCookieAsync(const GURL& url, | 130 void DeleteCookieAsync(const GURL& url, |
| 131 const std::string& cookie_name, | 131 const std::string& cookie_name, |
| 132 const base::Closure& callback) override { | 132 const base::Closure& callback) override { |
| 133 RoundTrip(); | 133 RoundTrip(); |
| 134 store_->DeleteCookieAsync(url, cookie_name, callback); | 134 store_->DeleteCookieAsync(url, cookie_name, callback); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void DeleteCanonicalCookieAsync( |
| 138 const CanonicalCookie& cookie, |
| 139 const DeleteCallback& callback) override { |
| 140 RoundTrip(); |
| 141 store_->DeleteCanonicalCookieAsync(cookie, callback); |
| 142 } |
| 143 |
| 137 net::CookieMonster* GetCookieMonster() override { return nullptr; } | 144 net::CookieMonster* GetCookieMonster() override { return nullptr; } |
| 138 | 145 |
| 139 void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, | 146 void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, |
| 140 const base::Time& delete_end, | 147 const base::Time& delete_end, |
| 141 const DeleteCallback& callback) override { | 148 const DeleteCallback& callback) override { |
| 142 RoundTrip(); | 149 RoundTrip(); |
| 143 store_->DeleteAllCreatedBetweenAsync(delete_begin, delete_end, callback); | 150 store_->DeleteAllCreatedBetweenAsync(delete_begin, delete_end, callback); |
| 144 } | 151 } |
| 145 | 152 |
| 146 void DeleteAllCreatedBetweenForHostAsync( | 153 void DeleteAllCreatedBetweenForHostAsync( |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 EXPECT_EQ(2U, cookies.size()); | 987 EXPECT_EQ(2U, cookies.size()); |
| 981 // this deletes the callback | 988 // this deletes the callback |
| 982 handle.reset(); | 989 handle.reset(); |
| 983 SetSystemCookie(kTestCookieURL, "abc", "jkl"); | 990 SetSystemCookie(kTestCookieURL, "abc", "jkl"); |
| 984 EXPECT_EQ(2U, cookies.size()); | 991 EXPECT_EQ(2U, cookies.size()); |
| 985 DeleteSystemCookie(kTestCookieURL, "abc"); | 992 DeleteSystemCookie(kTestCookieURL, "abc"); |
| 986 store_->UnSynchronize(); | 993 store_->UnSynchronize(); |
| 987 } | 994 } |
| 988 | 995 |
| 989 } // namespace net | 996 } // namespace net |
| OLD | NEW |