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 "net/cookies/cookie_options.h" | 7 #include "net/cookies/cookie_options.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 void CookieStore::GetAllCookiesForURLAsync( | 53 void CookieStore::GetAllCookiesForURLAsync( |
54 const GURL& url, | 54 const GURL& url, |
55 const GetCookieListCallback& callback) { | 55 const GetCookieListCallback& callback) { |
56 CookieOptions options; | 56 CookieOptions options; |
57 options.set_include_httponly(); | 57 options.set_include_httponly(); |
58 options.set_include_same_site(); | 58 options.set_include_same_site(); |
59 options.set_do_not_update_access_time(); | 59 options.set_do_not_update_access_time(); |
60 GetCookieListWithOptionsAsync(url, options, callback); | 60 GetCookieListWithOptionsAsync(url, options, callback); |
61 } | 61 } |
62 | 62 |
63 CookieStore::CookieStore() {} | 63 void CookieStore::SetChannelIDServiceID(int id) { |
mmenke
2016/03/18 22:12:56
DCHECK_EQ(-1, channel_id_service_id_); ?
nharper
2016/03/18 22:31:09
Done.
| |
64 channel_id_service_id_ = id; | |
65 } | |
66 | |
67 int CookieStore::GetChannelIDServiceID() { | |
68 return channel_id_service_id_; | |
69 } | |
70 | |
71 CookieStore::CookieStore() : channel_id_service_id_(-1) {} | |
64 | 72 |
65 } // namespace net | 73 } // namespace net |
OLD | NEW |