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 NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ | 5 #ifndef NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ |
6 #define NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ | 6 #define NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/android/jni_android.h" | 13 #include "base/android/jni_android.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 #include "net/http/http_auth.h" | 19 #include "net/http/http_auth.h" |
20 | 20 |
21 namespace base { | |
22 class TaskRunner; | |
23 } | |
24 | |
25 namespace net { | 21 namespace net { |
26 | 22 |
27 class HttpAuthChallengeTokenizer; | 23 class HttpAuthChallengeTokenizer; |
28 class HttpAuthPreferences; | 24 class HttpAuthPreferences; |
29 | 25 |
30 namespace android { | 26 namespace android { |
31 | 27 |
32 // This class provides a threadsafe wrapper for SetResult, which is called from | 28 // This class provides a threadsafe wrapper for SetResult, which is called from |
33 // Java. A new instance of this class is needed for each call, and the instance | 29 // Java. A new instance of this class is needed for each call, and the instance |
34 // destroys itself when the callback is received. It is written to allow | 30 // destroys itself when the callback is received. It is written to allow |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 131 |
136 base::WeakPtrFactory<HttpAuthNegotiateAndroid> weak_factory_; | 132 base::WeakPtrFactory<HttpAuthNegotiateAndroid> weak_factory_; |
137 | 133 |
138 DISALLOW_COPY_AND_ASSIGN(HttpAuthNegotiateAndroid); | 134 DISALLOW_COPY_AND_ASSIGN(HttpAuthNegotiateAndroid); |
139 }; | 135 }; |
140 | 136 |
141 } // namespace android | 137 } // namespace android |
142 } // namespace net | 138 } // namespace net |
143 | 139 |
144 #endif // NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ | 140 #endif // NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ |
OLD | NEW |