| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |