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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 realm_ = realm; | 29 realm_ = realm; |
30 target_ = target; | 30 target_ = target; |
31 } | 31 } |
32 | 32 |
33 HttpAuth::AuthorizationResult HandleAnotherChallenge( | 33 HttpAuth::AuthorizationResult HandleAnotherChallenge( |
34 const HttpAuthChallengeTokenizer& challenge) override { | 34 const HttpAuthChallengeTokenizer& challenge) override { |
35 return HttpAuth::AUTHORIZATION_RESULT_REJECT; | 35 return HttpAuth::AUTHORIZATION_RESULT_REJECT; |
36 } | 36 } |
37 | 37 |
38 protected: | 38 protected: |
39 int Init(const HttpAuthChallengeTokenizer& challenge) override { | 39 int InitializeFromChallengeInternal( |
40 return ERR_UNEXPECTED; // Unused. | 40 const HttpAuthChallengeTokenizer& challenge, |
| 41 const HttpResponseInfo& response_with_challenge, |
| 42 const CompletionCallback& callback) override { |
| 43 return ERR_UNEXPECTED; |
| 44 } |
| 45 |
| 46 int InitializeFromCacheEntryInternal( |
| 47 HttpAuthCache::Entry* cache_entry) override { |
| 48 return ERR_UNEXPECTED; |
41 } | 49 } |
42 | 50 |
43 int GenerateAuthTokenImpl(const AuthCredentials*, | 51 int GenerateAuthTokenImpl(const AuthCredentials*, |
44 const HttpRequestInfo&, | 52 const HttpRequestInfo&, |
45 const CompletionCallback& callback, | 53 const CompletionCallback& callback, |
46 std::string* auth_token) override { | 54 std::string* auth_token) override { |
47 *auth_token = "mock-credentials"; | 55 *auth_token = "mock-credentials"; |
48 return OK; | 56 return OK; |
49 } | 57 } |
50 | 58 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 CheckPathExistence(0, i, false); | 583 CheckPathExistence(0, i, false); |
576 | 584 |
577 for (int i = 0; i < kMaxPaths; ++i) | 585 for (int i = 0; i < kMaxPaths; ++i) |
578 CheckPathExistence(0, i + 3, true); | 586 CheckPathExistence(0, i + 3, true); |
579 | 587 |
580 for (int i = 0; i < kMaxRealms; ++i) | 588 for (int i = 0; i < kMaxRealms; ++i) |
581 CheckRealmExistence(i, true); | 589 CheckRealmExistence(i, true); |
582 } | 590 } |
583 | 591 |
584 } // namespace net | 592 } // namespace net |
OLD | NEW |