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

Side by Side Diff: android_webview/browser/net/aw_cookie_store_wrapper.h

Issue 1844243002: [CookieStore] Upgrading host-based deleting to predicate-based deleting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « no previous file | android_webview/browser/net/aw_cookie_store_wrapper.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 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const GetCookieListCallback& callback) override; 65 const GetCookieListCallback& callback) override;
66 void GetAllCookiesAsync(const GetCookieListCallback& callback) override; 66 void GetAllCookiesAsync(const GetCookieListCallback& callback) override;
67 void DeleteCookieAsync(const GURL& url, 67 void DeleteCookieAsync(const GURL& url,
68 const std::string& cookie_name, 68 const std::string& cookie_name,
69 const base::Closure& callback) override; 69 const base::Closure& callback) override;
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 DeleteAllCreatedBetweenWithPredicateAsync(
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 CookiePredicate& predicate,
79 const DeleteCallback& callback) override; 79 const DeleteCallback& callback) override;
80 void DeleteSessionCookiesAsync(const DeleteCallback& callback) override; 80 void DeleteSessionCookiesAsync(const DeleteCallback& callback) override;
81 void FlushStore(const base::Closure& callback) override; 81 void FlushStore(const base::Closure& callback) override;
82 void SetForceKeepSessionState() override; 82 void SetForceKeepSessionState() override;
83 std::unique_ptr<CookieChangedSubscription> AddCallbackForCookie( 83 std::unique_ptr<CookieChangedSubscription> AddCallbackForCookie(
84 const GURL& url, 84 const GURL& url,
85 const std::string& name, 85 const std::string& name,
86 const CookieChangedCallback& callback) override; 86 const CookieChangedCallback& callback) override;
87 bool IsEphemeral() override; 87 bool IsEphemeral() override;
88 88
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Runs |callback|. Used to prevent callbacks from being invoked after the 122 // Runs |callback|. Used to prevent callbacks from being invoked after the
123 // AwCookieStoreWrapper has been destroyed. 123 // AwCookieStoreWrapper has been destroyed.
124 void RunClosureCallback(const base::Closure& callback); 124 void RunClosureCallback(const base::Closure& callback);
125 125
126 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; 126 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_;
127 127
128 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; 128 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_;
129 }; 129 };
130 130
131 } // namesspace android_webview 131 } // namesspace android_webview
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_cookie_store_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698