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 20 matching lines...) Expand all Loading... |
31 target_ = target; | 31 target_ = target; |
32 properties_ = 0; | 32 properties_ = 0; |
33 } | 33 } |
34 | 34 |
35 HttpAuth::AuthorizationResult HandleAnotherChallenge( | 35 HttpAuth::AuthorizationResult HandleAnotherChallenge( |
36 HttpAuthChallengeTokenizer* challenge) override { | 36 HttpAuthChallengeTokenizer* challenge) override { |
37 return HttpAuth::AUTHORIZATION_RESULT_REJECT; | 37 return HttpAuth::AUTHORIZATION_RESULT_REJECT; |
38 } | 38 } |
39 | 39 |
40 protected: | 40 protected: |
41 bool Init(HttpAuthChallengeTokenizer* challenge) override { | 41 bool Init(HttpAuthChallengeTokenizer* challenge, |
| 42 const SSLInfo& ssl_info) override { |
42 return false; // Unused. | 43 return false; // Unused. |
43 } | 44 } |
44 | 45 |
45 int GenerateAuthTokenImpl(const AuthCredentials*, | 46 int GenerateAuthTokenImpl(const AuthCredentials*, |
46 const HttpRequestInfo*, | 47 const HttpRequestInfo*, |
47 const CompletionCallback& callback, | 48 const CompletionCallback& callback, |
48 std::string* auth_token) override { | 49 std::string* auth_token) override { |
49 *auth_token = "mock-credentials"; | 50 *auth_token = "mock-credentials"; |
50 return OK; | 51 return OK; |
51 } | 52 } |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 CheckPathExistence(0, i, false); | 620 CheckPathExistence(0, i, false); |
620 | 621 |
621 for (int i = 0; i < kMaxPaths; ++i) | 622 for (int i = 0; i < kMaxPaths; ++i) |
622 CheckPathExistence(0, i + 3, true); | 623 CheckPathExistence(0, i + 3, true); |
623 | 624 |
624 for (int i = 0; i < kMaxRealms; ++i) | 625 for (int i = 0; i < kMaxRealms; ++i) |
625 CheckRealmExistence(i, true); | 626 CheckRealmExistence(i, true); |
626 } | 627 } |
627 | 628 |
628 } // namespace net | 629 } // namespace net |
OLD | NEW |