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

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

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 years, 9 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/cookies/cookie_store_test_helpers.h » ('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
11 CookieStore::CookieStore() {}
12
13 CookieStore::~CookieStore() {} 11 CookieStore::~CookieStore() {}
14 12
15 std::string CookieStore::BuildCookieLine( 13 std::string CookieStore::BuildCookieLine(
16 const std::vector<CanonicalCookie>& cookies) { 14 const std::vector<CanonicalCookie>& cookies) {
17 std::string cookie_line; 15 std::string cookie_line;
18 for (const auto& cookie : cookies) { 16 for (const auto& cookie : cookies) {
19 if (!cookie_line.empty()) 17 if (!cookie_line.empty())
20 cookie_line += "; "; 18 cookie_line += "; ";
21 // In Mozilla, if you set a cookie like "AAA", it will have an empty token 19 // In Mozilla, if you set a cookie like "AAA", it will have an empty token
22 // and a value of "AAA". When it sends the cookie back, it will send "AAA", 20 // and a value of "AAA". When it sends the cookie back, it will send "AAA",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void CookieStore::GetAllCookiesForURLAsync( 53 void CookieStore::GetAllCookiesForURLAsync(
56 const GURL& url, 54 const GURL& url,
57 const GetCookieListCallback& callback) { 55 const GetCookieListCallback& callback) {
58 CookieOptions options; 56 CookieOptions options;
59 options.set_include_httponly(); 57 options.set_include_httponly();
60 options.set_include_same_site(); 58 options.set_include_same_site();
61 options.set_do_not_update_access_time(); 59 options.set_do_not_update_access_time();
62 GetCookieListWithOptionsAsync(url, options, callback); 60 GetCookieListWithOptionsAsync(url, options, callback);
63 } 61 }
64 62
63 CookieStore::CookieStore() {}
64
65 } // namespace net 65 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_store.h ('k') | net/cookies/cookie_store_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698