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 "net/cookies/cookie_store.h" | 5 #include "net/cookies/cookie_store.h" |
6 | 6 |
7 #include "base/callback.h" | |
Mike West
2016/03/11 08:36:11
Do we need this? We're just passing the callback t
dmurph
2016/03/30 22:21:27
Done.
| |
7 #include "net/cookies/cookie_options.h" | 8 #include "net/cookies/cookie_options.h" |
8 | 9 |
9 namespace net { | 10 namespace net { |
10 | 11 |
11 CookieStore::~CookieStore() {} | 12 CookieStore::~CookieStore() {} |
12 | 13 |
13 std::string CookieStore::BuildCookieLine( | 14 std::string CookieStore::BuildCookieLine( |
14 const std::vector<CanonicalCookie>& cookies) { | 15 const std::vector<CanonicalCookie>& cookies) { |
15 std::string cookie_line; | 16 std::string cookie_line; |
16 for (const auto& cookie : cookies) { | 17 for (const auto& cookie : cookies) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 CookieOptions options; | 57 CookieOptions options; |
57 options.set_include_httponly(); | 58 options.set_include_httponly(); |
58 options.set_include_same_site(); | 59 options.set_include_same_site(); |
59 options.set_do_not_update_access_time(); | 60 options.set_do_not_update_access_time(); |
60 GetCookieListWithOptionsAsync(url, options, callback); | 61 GetCookieListWithOptionsAsync(url, options, callback); |
61 } | 62 } |
62 | 63 |
63 CookieStore::CookieStore() {} | 64 CookieStore::CookieStore() {} |
64 | 65 |
65 } // namespace net | 66 } // namespace net |
OLD | NEW |