| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> |
| 9 | 10 |
| 10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 11 #include "net/base/address_list.h" | 12 #include "net/base/address_list.h" |
| 12 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 13 #include "net/http/http_auth_handler.h" | 14 #include "net/http/http_auth_handler.h" |
| 14 #include "net/http/http_auth_handler_factory.h" | 15 #include "net/http/http_auth_handler_factory.h" |
| 15 | 16 |
| 16 #if defined(OS_ANDROID) | 17 #if defined(OS_ANDROID) |
| 17 #include "net/android/http_auth_negotiate_android.h" | 18 #include "net/android/http_auth_negotiate_android.h" |
| 18 #elif defined(OS_WIN) | 19 #elif defined(OS_WIN) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 public: | 49 public: |
| 49 Factory(); | 50 Factory(); |
| 50 ~Factory() override; | 51 ~Factory() override; |
| 51 | 52 |
| 52 void set_host_resolver(HostResolver* host_resolver); | 53 void set_host_resolver(HostResolver* host_resolver); |
| 53 | 54 |
| 54 #if !defined(OS_ANDROID) | 55 #if !defined(OS_ANDROID) |
| 55 // Sets the system library to use, thereby assuming ownership of | 56 // Sets the system library to use, thereby assuming ownership of |
| 56 // |auth_library|. | 57 // |auth_library|. |
| 57 void set_library(scoped_ptr<AuthLibrary> auth_provider) { | 58 void set_library(scoped_ptr<AuthLibrary> auth_provider) { |
| 58 auth_library_ = auth_provider.Pass(); | 59 auth_library_ = std::move(auth_provider); |
| 59 } | 60 } |
| 60 #endif | 61 #endif |
| 61 | 62 |
| 62 // HttpAuthHandlerFactory overrides | 63 // HttpAuthHandlerFactory overrides |
| 63 int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, | 64 int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
| 64 HttpAuth::Target target, | 65 HttpAuth::Target target, |
| 65 const GURL& origin, | 66 const GURL& origin, |
| 66 CreateReason reason, | 67 CreateReason reason, |
| 67 int digest_nonce_count, | 68 int digest_nonce_count, |
| 68 const BoundNetLog& net_log, | 69 const BoundNetLog& net_log, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 std::string* auth_token_; | 148 std::string* auth_token_; |
| 148 | 149 |
| 149 State next_state_; | 150 State next_state_; |
| 150 | 151 |
| 151 const HttpAuthPreferences* http_auth_preferences_; | 152 const HttpAuthPreferences* http_auth_preferences_; |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace net | 155 } // namespace net |
| 155 | 156 |
| 156 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 157 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| OLD | NEW |