/external/chromium/net/http/ |
http_auth_filter_unittest.cc | 32 HttpAuth::Target target; 39 HttpAuth::AUTH_NONE, false, 0 }, 41 HttpAuth::AUTH_PROXY, true, ALL_SERVERS_MATCH }, 43 HttpAuth::AUTH_SERVER, false, 0 }, 45 HttpAuth::AUTH_NONE, false, 0 }, 47 HttpAuth::AUTH_SERVER, true, 1 << 0 }, 49 HttpAuth::AUTH_PROXY, true, ALL_SERVERS_MATCH }, 51 HttpAuth::AUTH_NONE, false, 0 }, 53 HttpAuth::AUTH_SERVER, true, 1 << 3 }, 55 HttpAuth::AUTH_SERVER, true, 1 << 0 } [all...] |
http_auth_handler_basic.h | 25 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 26 HttpAuth::Target target, 34 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 35 HttpAuth::ChallengeTokenizer* challenge); 38 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); 49 bool ParseChallenge(HttpAuth::ChallengeTokenizer* challenge);
|
http_auth_filter.cc | 29 HttpAuth::Target target) { 30 if ((target != HttpAuth::AUTH_SERVER) && (target != HttpAuth::AUTH_PROXY)) 33 if (target == HttpAuth::AUTH_PROXY) 44 HttpAuth::Target target) const { 45 if ((target != HttpAuth::AUTH_SERVER) && (target != HttpAuth::AUTH_PROXY)) 48 if (target == HttpAuth::AUTH_PROXY)
|
http_auth_handler.h | 33 bool InitFromChallenge(HttpAuth::ChallengeTokenizer* challenge, 34 HttpAuth::Target target, 51 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 52 HttpAuth::ChallengeTokenizer* challenge) = 0; 79 HttpAuth::Scheme auth_scheme() const { 94 // numbers are better. Used by HttpAuth::ChooseBestChallenge(). 99 HttpAuth::Target target() const { 149 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) = 0; 161 HttpAuth::Scheme auth_scheme_; 178 HttpAuth::Target target_ [all...] |
http_auth.cc | 21 HttpAuth::Identity::Identity() : source(IDENT_SRC_NONE), invalid(true) {} 24 void HttpAuth::ChooseBestChallenge( 57 HttpAuth::AuthorizationResult HttpAuth::HandleChallengeResponse( 67 HttpAuth::Scheme current_scheme = handler->auth_scheme(); 69 return HttpAuth::AUTHORIZATION_RESULT_REJECT; 74 HttpAuth::AuthorizationResult authorization_result = 75 HttpAuth::AUTHORIZATION_RESULT_INVALID; 77 HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); 81 if (authorization_result != HttpAuth::AUTHORIZATION_RESULT_INVALID) [all...] |
http_auth_handler_mock.h | 39 void set_mock_handler(HttpAuthHandler* handler, HttpAuth::Target target); 46 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 47 HttpAuth::Target target, 55 scoped_ptr<HttpAuthHandler> handlers_[HttpAuth::AUTH_NUM_TARGETS]; 82 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 83 HttpAuth::ChallengeTokenizer* challenge); 87 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge);
|
http_auth_handler_basic.cc | 25 bool HttpAuthHandlerBasic::Init(HttpAuth::ChallengeTokenizer* challenge) { 26 auth_scheme_ = HttpAuth::AUTH_SCHEME_BASIC; 33 HttpAuth::ChallengeTokenizer* challenge) { 54 HttpAuth::AuthorizationResult HttpAuthHandlerBasic::HandleAnotherChallenge( 55 HttpAuth::ChallengeTokenizer* challenge) { 66 HttpAuth::AUTHORIZATION_RESULT_DIFFERENT_REALM: 67 HttpAuth::AUTHORIZATION_RESULT_REJECT; 94 HttpAuth::ChallengeTokenizer* challenge, 95 HttpAuth::Target target,
|
http_auth_filter.h | 27 virtual bool IsValid(const GURL& url, HttpAuth::Target target) const = 0; 41 bool AddFilter(const std::string& filter, HttpAuth::Target target); 49 virtual bool IsValid(const GURL& url, HttpAuth::Target target) const;
|
http_auth_handler_ntlm.cc | 18 HttpAuth::AuthorizationResult HttpAuthHandlerNTLM::HandleAnotherChallenge( 19 HttpAuth::ChallengeTokenizer* challenge) { 23 bool HttpAuthHandlerNTLM::Init(HttpAuth::ChallengeTokenizer* tok) { 24 auth_scheme_ = HttpAuth::AUTH_SCHEME_NTLM; 28 return ParseChallenge(tok, true) == HttpAuth::AUTHORIZATION_RESULT_ACCEPT; 110 HttpAuth::AuthorizationResult HttpAuthHandlerNTLM::ParseChallenge( 111 HttpAuth::ChallengeTokenizer* tok, bool initial_challenge) { 125 return HttpAuth::AUTHORIZATION_RESULT_INVALID; 130 return HttpAuth::AUTHORIZATION_RESULT_REJECT; 131 return HttpAuth::AUTHORIZATION_RESULT_ACCEPT [all...] |
http_auth_unittest.cc | 31 HttpAuth::ChallengeTokenizer challenge(challenge_text.begin(), 35 HttpAuth::AUTH_SERVER, 46 HttpAuth::AuthorizationResult HandleChallengeResponse( 52 std::set<HttpAuth::Scheme> disabled_schemes; 55 return HttpAuth::HandleChallengeResponse( 58 HttpAuth::AUTH_SERVER, 68 HttpAuth::Scheme challenge_scheme; 76 HttpAuth::AUTH_SCHEME_BASIC, 84 HttpAuth::AUTH_SCHEME_MAX, 94 HttpAuth::AUTH_SCHEME_DIGEST [all...] |
http_auth_sspi_win_unittest.cc | 65 HttpAuth::ChallengeTokenizer challenge(challenge_text.begin(), 67 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT, 78 HttpAuth::ChallengeTokenizer first_challenge(first_challenge_text.begin(), 80 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT, 90 HttpAuth::ChallengeTokenizer second_challenge(second_challenge_text.begin(), 92 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT, 103 HttpAuth::ChallengeTokenizer challenge(challenge_text.begin(), 105 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, 116 HttpAuth::ChallengeTokenizer first_challenge(first_challenge_text.begin(), 118 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT [all...] |
http_auth_handler.cc | 13 : auth_scheme_(HttpAuth::AUTH_SCHEME_MAX), 15 target_(HttpAuth::AUTH_NONE), 27 HttpAuth::ChallengeTokenizer* challenge, 28 HttpAuth::Target target, 44 DCHECK(!ok || auth_scheme_ != HttpAuth::AUTH_SCHEME_MAX); 51 NetLog::EventType EventTypeFromAuthTarget(HttpAuth::Target target) { 53 case HttpAuth::AUTH_PROXY: 55 case HttpAuth::AUTH_SERVER:
|
url_security_manager.cc | 23 return whitelist_default_->IsValid(auth_origin, HttpAuth::AUTH_SERVER); 29 return whitelist_delegate_->IsValid(auth_origin, HttpAuth::AUTH_SERVER);
|
http_auth_controller.h | 36 HttpAuthController(HttpAuth::Target target, 72 virtual bool IsAuthSchemeDisabled(HttpAuth::Scheme scheme) const; 73 virtual void DisableAuthScheme(HttpAuth::Scheme scheme); 118 HttpAuth::Target target_; 138 HttpAuth::Identity identity_; 162 std::set<HttpAuth::Scheme> disabled_schemes_;
|
http_auth_handler_factory_unittest.cc | 24 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 25 HttpAuth::Target target, 61 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); 67 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); 70 "Digest", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), 77 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); 80 "Digest", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), 86 "basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); 92 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); 95 "Digest", HttpAuth::AUTH_SERVER, gurl, BoundNetLog() [all...] |
http_auth_cache_unittest.cc | 22 MockAuthHandler(HttpAuth::Scheme scheme, 24 HttpAuth::Target target) { 33 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 34 HttpAuth::ChallengeTokenizer* challenge) { 35 return HttpAuth::AUTHORIZATION_RESULT_REJECT; 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) { 84 new MockAuthHandler(HttpAuth::AUTH_SCHEME_BASIC, 86 HttpAuth::AUTH_SERVER)); 92 new MockAuthHandler(HttpAuth::AUTH_SCHEME_BASIC, 94 HttpAuth::AUTH_SERVER)) [all...] |
http_auth_handler_ntlm.h | 45 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 46 HttpAuth::Target target, 113 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 114 HttpAuth::ChallengeTokenizer* challenge); 121 virtual bool Init(HttpAuth::ChallengeTokenizer* tok); 140 HttpAuth::AuthorizationResult ParseChallenge( 141 HttpAuth::ChallengeTokenizer* tok, bool initial_challenge);
|
http_auth_controller.cc | 70 case HttpAuth::AUTH_PROXY: 75 case HttpAuth::AUTH_SERVER: 99 HttpAuth::Scheme auth_scheme = handler->auth_scheme(); 100 DCHECK(auth_scheme >= 0 && auth_scheme < HttpAuth::AUTH_SCHEME_MAX); 114 HttpAuth::AUTH_SCHEME_MAX * AUTH_EVENT_MAX; 142 HttpAuth::AUTH_SCHEME_MAX * AUTH_TARGET_MAX; 153 HttpAuth::Target target, 160 auth_path_(HttpAuth::AUTH_PROXY ? std::string() : auth_url.path()), 184 if (identity_.source != HttpAuth::IDENT_SRC_DEFAULT_CREDENTIALS) { 234 identity_.source = HttpAuth::IDENT_SRC_PATH_LOOKUP [all...] |
http_auth_handler_basic_unittest.cc | 38 challenge, HttpAuth::AUTH_SERVER, origin, BoundNetLog(), &basic)); 53 HttpAuth::AuthorizationResult expected_rv; 61 HttpAuth::AUTHORIZATION_RESULT_REJECT 67 HttpAuth::AUTHORIZATION_RESULT_DIFFERENT_REALM 75 HttpAuth::AUTHORIZATION_RESULT_REJECT 81 HttpAuth::AUTHORIZATION_RESULT_DIFFERENT_REALM 89 tests[0].challenge, HttpAuth::AUTH_SERVER, origin, 94 HttpAuth::ChallengeTokenizer tok(challenge.begin(), 181 challenge, HttpAuth::AUTH_SERVER, origin, BoundNetLog(), &basic);
|
http_auth_cache.h | 50 HttpAuth::Scheme scheme); 75 HttpAuth::Scheme scheme, 91 HttpAuth::Scheme scheme, 102 HttpAuth::Scheme scheme, 125 HttpAuth::Scheme scheme() const { 176 HttpAuth::Scheme scheme_;
|
http_auth_handler_factory.h | 76 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 77 HttpAuth::Target target, 90 HttpAuth::Target target, 102 HttpAuth::Target target, 184 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 185 HttpAuth::Target target,
|
http_auth_gssapi_posix_unittest.cc | 180 HttpAuth::ChallengeTokenizer challenge(challenge_text.begin(), 182 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT, 193 HttpAuth::ChallengeTokenizer first_challenge(first_challenge_text.begin(), 195 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT, 206 HttpAuth::ChallengeTokenizer second_challenge(second_challenge_text.begin(), 208 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT, 219 HttpAuth::ChallengeTokenizer challenge(challenge_text.begin(), 221 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, 232 HttpAuth::ChallengeTokenizer first_challenge(first_challenge_text.begin(), 234 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_ACCEPT [all...] |
http_auth_handler_unittest.cc | 34 HttpAuth::Target target = 35 (k == 0) ? HttpAuth::AUTH_PROXY : HttpAuth::AUTH_SERVER; 38 HttpAuth::ChallengeTokenizer tokenizer(
|
http_auth_handler_mock.cc | 74 HttpAuth::AuthorizationResult HttpAuthHandlerMock::HandleAnotherChallenge( 75 HttpAuth::ChallengeTokenizer* challenge) { 77 return HttpAuth::AUTHORIZATION_RESULT_REJECT; 79 return HttpAuth::AUTHORIZATION_RESULT_INVALID; 80 return HttpAuth::AUTHORIZATION_RESULT_ACCEPT; 87 bool HttpAuthHandlerMock::Init(HttpAuth::ChallengeTokenizer* challenge) { 88 auth_scheme_ = HttpAuth::AUTH_SCHEME_MOCK; 146 HttpAuthHandler* handler, HttpAuth::Target target) { 152 HttpAuth::ChallengeTokenizer* challenge, 153 HttpAuth::Target target [all...] |
http_auth_handler_digest_unittest.cc | 29 // If |target| is HttpAuth::AUTH_PROXY, then |proxy_name| specifies the source 32 bool RespondToChallenge(HttpAuth::Target target, 42 EXPECT_TRUE(target != HttpAuth::AUTH_PROXY || !proxy_name.empty()); 55 GURL url_origin(target == HttpAuth::AUTH_SERVER ? request_url : proxy_name); 342 HttpAuth::AUTH_SERVER, 507 HttpAuth::AUTH_SERVER, 536 default_challenge, HttpAuth::AUTH_SERVER, origin, BoundNetLog(), 540 HttpAuth::ChallengeTokenizer tok_default(default_challenge.begin(), 542 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_REJECT, 546 HttpAuth::ChallengeTokenizer tok_stale(stale_challenge.begin() [all...] |