| 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 |
| 21 namespace net { | 25 namespace net { |
| 22 | 26 |
| 23 class HttpAuthChallengeTokenizer; | 27 class HttpAuthChallengeTokenizer; |
| 24 class HttpAuthPreferences; | 28 class HttpAuthPreferences; |
| 25 | 29 |
| 26 namespace android { | 30 namespace android { |
| 27 | 31 |
| 28 // This class provides a threadsafe wrapper for SetResult, which is called from | 32 // This class provides a threadsafe wrapper for SetResult, which is called from |
| 29 // Java. A new instance of this class is needed for each call, and the instance | 33 // Java. A new instance of this class is needed for each call, and the instance |
| 30 // destroys itself when the callback is received. It is written to allow | 34 // 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... |
| 131 | 135 |
| 132 base::WeakPtrFactory<HttpAuthNegotiateAndroid> weak_factory_; | 136 base::WeakPtrFactory<HttpAuthNegotiateAndroid> weak_factory_; |
| 133 | 137 |
| 134 DISALLOW_COPY_AND_ASSIGN(HttpAuthNegotiateAndroid); | 138 DISALLOW_COPY_AND_ASSIGN(HttpAuthNegotiateAndroid); |
| 135 }; | 139 }; |
| 136 | 140 |
| 137 } // namespace android | 141 } // namespace android |
| 138 } // namespace net | 142 } // namespace net |
| 139 | 143 |
| 140 #endif // NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ | 144 #endif // NET_ANDROID_HTTP_AUTH_NEGOTIATE_ANDROID_H_ |
| OLD | NEW |