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 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_COOKIE_STORE_WRAPPER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_COOKIE_STORE_WRAPPER_H_ |
| 7 |
5 #include <string> | 8 #include <string> |
6 | 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/location.h" | 11 #include "base/location.h" |
9 #include "base/macros.h" | 12 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
12 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
13 #include "base/task_runner.h" | 16 #include "base/task_runner.h" |
14 #include "base/time/time.h" | 17 #include "base/time/time.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 123 |
121 // Runs |callback|. Used to prevent callbacks from being invoked after the | 124 // Runs |callback|. Used to prevent callbacks from being invoked after the |
122 // AwCookieStoreWrapper has been destroyed. | 125 // AwCookieStoreWrapper has been destroyed. |
123 void RunClosureCallback(const base::Closure& callback); | 126 void RunClosureCallback(const base::Closure& callback); |
124 | 127 |
125 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; | 128 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; |
126 | 129 |
127 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; | 130 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; |
128 }; | 131 }; |
129 | 132 |
130 } // namesspace android_webview | 133 } // namespace android_webview |
| 134 |
| 135 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_COOKIE_STORE_WRAPPER_H_ |
OLD | NEW |