Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: net/cookies/cookie_store.cc

Issue 1818603002: Keep track of ChannelIDService in CookieStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/DCHECK(false)/NOTREACHED()/ Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cookies/cookie_store.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_same_site_cookie_mode( 58 options.set_same_site_cookie_mode(
59 CookieOptions::SameSiteCookieMode::INCLUDE_STRICT_AND_LAX); 59 CookieOptions::SameSiteCookieMode::INCLUDE_STRICT_AND_LAX);
60 options.set_do_not_update_access_time(); 60 options.set_do_not_update_access_time();
61 GetCookieListWithOptionsAsync(url, options, callback); 61 GetCookieListWithOptionsAsync(url, options, callback);
62 } 62 }
63 63
64 CookieStore::CookieStore() {} 64 void CookieStore::SetChannelIDServiceID(int id) {
65 DCHECK_EQ(-1, channel_id_service_id_);
66 channel_id_service_id_ = id;
67 }
68
69 int CookieStore::GetChannelIDServiceID() {
70 return channel_id_service_id_;
71 }
72
73 CookieStore::CookieStore() : channel_id_service_id_(-1) {}
65 74
66 } // namespace net 75 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_store.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698