| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 scoped_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 |
| 89 private: | 89 private: |
| 90 // Used by CreateWrappedCallback below. Takes an arugment of Type and posts | 90 // Used by CreateWrappedCallback below. Takes an arugment of Type and posts |
| 91 // a task to |task_runner| to invoke |callback| with that argument. If | 91 // a task to |task_runner| to invoke |callback| with that argument. If |
| 92 // |weak_cookie_store| is deleted before the task is run, the task will not | 92 // |weak_cookie_store| is deleted before the task is run, the task will not |
| 93 // be run. | 93 // be run. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 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 |
| OLD | NEW |