| 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_MOCK_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const CompletionCallback& callback, | 101 const CompletionCallback& callback, |
| 102 std::string* auth_token) OVERRIDE; | 102 std::string* auth_token) OVERRIDE; |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 void OnResolveCanonicalName(); | 105 void OnResolveCanonicalName(); |
| 106 | 106 |
| 107 void OnGenerateAuthToken(); | 107 void OnGenerateAuthToken(); |
| 108 | 108 |
| 109 Resolve resolve_; | 109 Resolve resolve_; |
| 110 CompletionCallback callback_; | 110 CompletionCallback callback_; |
| 111 base::WeakPtrFactory<HttpAuthHandlerMock> weak_factory_; | |
| 112 bool generate_async_; | 111 bool generate_async_; |
| 113 int generate_rv_; | 112 int generate_rv_; |
| 114 std::string* auth_token_; | 113 std::string* auth_token_; |
| 115 bool first_round_; | 114 bool first_round_; |
| 116 bool connection_based_; | 115 bool connection_based_; |
| 117 bool allows_default_credentials_; | 116 bool allows_default_credentials_; |
| 118 bool allows_explicit_credentials_; | 117 bool allows_explicit_credentials_; |
| 119 GURL request_url_; | 118 GURL request_url_; |
| 119 base::WeakPtrFactory<HttpAuthHandlerMock> weak_factory_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace net | 122 } // namespace net |
| 123 | 123 |
| 124 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ | 124 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
| OLD | NEW |