OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void DeleteCanonicalCookieAsync(const net::CanonicalCookie& cookie, | 70 void DeleteCanonicalCookieAsync(const net::CanonicalCookie& cookie, |
71 const DeleteCallback& callback) override; | 71 const DeleteCallback& callback) override; |
72 void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, | 72 void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, |
73 const base::Time& delete_end, | 73 const base::Time& delete_end, |
74 const DeleteCallback& callback) override; | 74 const DeleteCallback& callback) override; |
75 void DeleteAllCreatedBetweenForHostAsync( | 75 void DeleteAllCreatedBetweenForHostAsync( |
76 const base::Time delete_begin, | 76 const base::Time delete_begin, |
77 const base::Time delete_end, | 77 const base::Time delete_end, |
78 const GURL& url, | 78 const GURL& url, |
79 const DeleteCallback& callback) override; | 79 const DeleteCallback& callback) override; |
| 80 void DeleteAllCreatedBetweenWithPredicateAsync( |
| 81 const base::Time& delete_begin, |
| 82 const base::Time& delete_end, |
| 83 const CookiePredicate& predicate, |
| 84 const DeleteCallback& callback) override; |
80 void DeleteSessionCookiesAsync(const DeleteCallback& callback) override; | 85 void DeleteSessionCookiesAsync(const DeleteCallback& callback) override; |
81 void FlushStore(const base::Closure& callback) override; | 86 void FlushStore(const base::Closure& callback) override; |
82 void SetForceKeepSessionState() override; | 87 void SetForceKeepSessionState() override; |
83 scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( | 88 scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( |
84 const GURL& url, | 89 const GURL& url, |
85 const std::string& name, | 90 const std::string& name, |
86 const CookieChangedCallback& callback) override; | 91 const CookieChangedCallback& callback) override; |
87 | 92 |
88 private: | 93 private: |
89 // Used by CreateWrappedCallback below. Takes an arugment of Type and posts | 94 // Used by CreateWrappedCallback below. Takes an arugment of Type and posts |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Runs |callback|. Used to prevent callbacks from being invoked after the | 126 // Runs |callback|. Used to prevent callbacks from being invoked after the |
122 // AwCookieStoreWrapper has been destroyed. | 127 // AwCookieStoreWrapper has been destroyed. |
123 void RunClosureCallback(const base::Closure& callback); | 128 void RunClosureCallback(const base::Closure& callback); |
124 | 129 |
125 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; | 130 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; |
126 | 131 |
127 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; | 132 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; |
128 }; | 133 }; |
129 | 134 |
130 } // namesspace android_webview | 135 } // namesspace android_webview |
OLD | NEW |