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

Side by Side Diff: content/browser/net/quota_policy_cookie_store.h

Issue 2383393002: Remove stl_util's deletion functions from net/cookies/ and net/extras/. (Closed)
Patch Set: removing Created 4 years, 2 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 | « no previous file | content/browser/net/quota_policy_cookie_store.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_BROWSER_NET_QUOTA_POLICY_COOKIE_STORE_H_ 5 #ifndef CONTENT_BROWSER_NET_QUOTA_POLICY_COOKIE_STORE_H_
6 #define CONTENT_BROWSER_NET_QUOTA_POLICY_COOKIE_STORE_H_ 6 #define CONTENT_BROWSER_NET_QUOTA_POLICY_COOKIE_STORE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 private: 62 private:
63 typedef std::map<net::SQLitePersistentCookieStore::CookieOrigin, size_t> 63 typedef std::map<net::SQLitePersistentCookieStore::CookieOrigin, size_t>
64 CookiesPerOriginMap; 64 CookiesPerOriginMap;
65 65
66 ~QuotaPolicyCookieStore() override; 66 ~QuotaPolicyCookieStore() override;
67 67
68 // Called after cookies are loaded from the database. Calls |loaded_callback| 68 // Called after cookies are loaded from the database. Calls |loaded_callback|
69 // when done. 69 // when done.
70 void OnLoad(const LoadedCallback& loaded_callback, 70 void OnLoad(const LoadedCallback& loaded_callback,
71 const std::vector<net::CanonicalCookie*>& cookies); 71 std::vector<std::unique_ptr<net::CanonicalCookie>> cookies);
72 72
73 // Map of (domain keys(eTLD+1), is secure cookie) to number of cookies in the 73 // Map of (domain keys(eTLD+1), is secure cookie) to number of cookies in the
74 // database. 74 // database.
75 CookiesPerOriginMap cookies_per_origin_; 75 CookiesPerOriginMap cookies_per_origin_;
76 76
77 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 77 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
78 scoped_refptr<net::SQLitePersistentCookieStore> persistent_store_; 78 scoped_refptr<net::SQLitePersistentCookieStore> persistent_store_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(QuotaPolicyCookieStore); 80 DISALLOW_COPY_AND_ASSIGN(QuotaPolicyCookieStore);
81 }; 81 };
82 82
83 } // namespace content 83 } // namespace content
84 84
85 #endif // CONTENT_BROWSER_NET_QUOTA_POLICY_COOKIE_STORE_H_ 85 #endif // CONTENT_BROWSER_NET_QUOTA_POLICY_COOKIE_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/net/quota_policy_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698