/external/chromium_org/content/browser/ |
D | resolve_proxy_msg_helper_unittest.cc | 62 : resolver_(new net::MockAsyncProxyResolver), in ResolveProxyMsgHelperTest() 64 new net::ProxyService(new MockProxyConfigService, resolver_, NULL)), in ResolveProxyMsgHelperTest() 84 net::MockAsyncProxyResolver* resolver_; member in content::ResolveProxyMsgHelperTest 121 resolver_->pending_set_pac_script_request()->CompleteNow(net::OK); in TEST_F() 123 ASSERT_EQ(1u, resolver_->pending_requests().size()); in TEST_F() 124 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url()); in TEST_F() 125 resolver_->pending_requests()[0]->results()->UseNamedProxy("result1:80"); in TEST_F() 126 resolver_->pending_requests()[0]->CompleteNow(net::OK); in TEST_F() 135 ASSERT_EQ(1u, resolver_->pending_requests().size()); in TEST_F() 136 EXPECT_EQ(url2, resolver_->pending_requests()[0]->url()); in TEST_F() [all …]
|
/external/chromium_org/third_party/webrtc/base/ |
D | autodetectproxy.cc | 32 : agent_(user_agent), resolver_(NULL), socket_(NULL), next_(0) { in AutoDetectProxy() 36 if (resolver_) { in ~AutoDetectProxy() 37 resolver_->Destroy(false); in ~AutoDetectProxy() 126 if (resolver != resolver_) { in OnResolveResult() 129 int error = resolver_->GetError(); in OnResolveResult() 132 << resolver_->address(); in OnResolveResult() 133 proxy_.address = resolver_->address(); in OnResolveResult() 138 LOG(LS_INFO) << "Failed to resolve " << resolver_->address(); in OnResolveResult() 139 resolver_->Destroy(false); in OnResolveResult() 140 resolver_ = NULL; in OnResolveResult() [all …]
|
D | macasyncsocket.cc | 41 resolver_(NULL) { in MacAsyncSocket() 93 if (thread != resolver_) { in OnResolveResult() 96 int error = resolver_->GetError(); in OnResolveResult() 98 error = DoConnect(resolver_->address()); in OnResolveResult() 117 resolver_ = new AsyncResolver(); in Connect() 118 resolver_->SignalWorkDone.connect(this, in Connect() 120 resolver_->Start(addr); in Connect() 268 if (resolver_) { in Close() 269 resolver_->Destroy(false); in Close() 270 resolver_ = NULL; in Close() [all …]
|
D | httpclient.cc | 275 resolver_(NULL) { in HttpClient() 286 if (resolver_) { in ~HttpClient() 287 resolver_->Destroy(false); in ~HttpClient() 304 if (resolver != resolver_) { in OnResolveResult() 307 int error = resolver_->GetError(); in OnResolveResult() 308 server_ = resolver_->address(); in OnResolveResult() 309 resolver_->Destroy(false); in OnResolveResult() 310 resolver_ = NULL; in OnResolveResult() 321 resolver_ = new AsyncResolver(); in StartDNSLookup() 322 resolver_->SignalDone.connect(this, &HttpClient::OnResolveResult); in StartDNSLookup() [all …]
|
/external/chromium_org/chrome/browser/chromeos/login/auth/ |
D | online_attempt_unittest.cc | 64 attempt_(new OnlineAttempt(&state_, &resolver_)) {} in OnlineAttemptTest() 72 EXPECT_CALL(resolver_, Resolve()).Times(1).RetiresOnSaturation(); in RunFailureTest() 93 MockAuthAttemptStateResolver resolver_; member in chromeos::OnlineAttemptTest 98 EXPECT_CALL(resolver_, Resolve()).Times(1).RetiresOnSaturation(); in TEST_F() 113 EXPECT_CALL(resolver_, Resolve()) in TEST_F() 135 EXPECT_CALL(resolver_, Resolve()) in TEST_F() 160 EXPECT_CALL(resolver_, Resolve()) in TEST_F() 168 attempt_.reset(new OnlineAttempt(&local_state, &resolver_)); in TEST_F() 182 EXPECT_CALL(resolver_, Resolve()) in TEST_F() 190 attempt_.reset(new OnlineAttempt(&local_state, &resolver_)); in TEST_F() [all …]
|
/external/chromium_org/extensions/browser/api/dns/ |
D | host_resolver_wrapper.cc | 12 HostResolverWrapper::HostResolverWrapper() : resolver_(NULL) {} in HostResolverWrapper() 21 return resolver_ ? resolver_ : context->GetHostResolver(); in GetHostResolver() 26 resolver_ = mock_resolver; in SetHostResolverForTesting()
|
/external/chromium_org/net/dns/ |
D | host_resolver_impl_unittest.cc | 210 resolver_(resolver), in Request() 217 DCHECK(resolver_); in Resolve() 220 result_ = resolver_->Resolve( in Resolve() 233 DCHECK(resolver_); in ResolveFromCache() 235 return resolver_->ResolveFromCache(info_, &list_, BoundNetLog()); in ResolveFromCache() 239 DCHECK(resolver_); in Cancel() 241 resolver_->CancelRequest(handle_); in Cancel() 305 HostResolver* resolver_; member in net::__anon3c5e1f9f0111::Request 457 void DeleteResolver() { test->resolver_.reset(); } in DeleteResolver() 468 if (resolver_.get()) in TearDown() [all …]
|
D | single_request_host_resolver.cc | 16 : resolver_(resolver), in SingleRequestHostResolver() 21 DCHECK(resolver_ != NULL); in SingleRequestHostResolver() 44 int rv = resolver_->Resolve( in Resolve() 59 resolver_->CancelRequest(cur_request_); in Cancel()
|
D | host_resolver_impl.cc | 933 : resolver_(resolver), in LoopbackProbeJob() 953 if (!resolver_.get()) in OnProbeComplete() 955 resolver_->SetHaveOnlyLoopbackAddresses(result_); in OnProbeComplete() 959 base::WeakPtr<HostResolverImpl> resolver_; member in net::HostResolverImpl::LoopbackProbeJob 1204 : resolver_(resolver), in Job() 1262 handle = resolver_->dispatcher_->Add(this, priority()); in Schedule() 1264 handle = resolver_->dispatcher_->AddAtHead(this, priority()); in Schedule() 1364 if (resolver_->ServeFromHosts(key(), in ServeFromHosts() 1403 resolver_->dispatcher_->Cancel(handle_); in ReduceToOneJobSlot() 1406 resolver_->dispatcher_->OnJobFinished(); in ReduceToOneJobSlot() [all …]
|
/external/chromium_org/net/proxy/ |
D | proxy_resolver_perftest.cc | 86 : resolver_(resolver), in PacPerfSuiteRunner() 109 if (!resolver_->expects_pac_bytes()) { in RunTest() 112 int rv = resolver_->SetPacScript( in RunTest() 125 int result = resolver_->GetProxyForURL( in RunTest() 141 int result = resolver_->GetProxyForURL( in RunTest() 173 int rv = resolver_->SetPacScript( in LoadPacScriptIntoResolver() 179 net::ProxyResolver* resolver_; member in PacPerfSuiteRunner
|
D | proxy_script_decider_unittest.cc | 314 request_context_.set_host_resolver(&resolver_); in SetUp() 327 MockHostResolver resolver_; member in net::__anon9e2cf0010111::ProxyScriptDeciderQuickCheckTest 341 resolver_.set_synchronous_mode(true); in TEST_F() 342 resolver_.rules()->AddRule("wpad", "1.2.3.4"); in TEST_F() 354 resolver_.set_ondemand_mode(true); in TEST_F() 355 resolver_.rules()->AddRule("wpad", "1.2.3.4"); in TEST_F() 358 ASSERT_TRUE(resolver_.has_pending_requests()); in TEST_F() 359 resolver_.ResolveAllPending(); in TEST_F() 361 EXPECT_FALSE(resolver_.has_pending_requests()); in TEST_F() 370 resolver_.set_ondemand_mode(true); in TEST_F() [all …]
|
D | mock_proxy_resolver.cc | 17 : resolver_(resolver), in Request() 27 resolver_->RemovePendingRequest(this); in CompleteNow() 38 : resolver_(resolver), in SetPacScriptRequest() 49 resolver_->RemovePendingSetPacScriptRequest(this); in CompleteNow()
|
D | multi_threaded_proxy_resolver.cc | 52 ProxyResolver* resolver() { return resolver_.get(); } in resolver() 68 scoped_ptr<ProxyResolver> resolver_; member in net::MultiThreadedProxyResolver::Executor 291 resolver_(resolver) { in Executor() 339 resolver_.reset(); in Destroy() 351 DCHECK(!resolver_.get()); in ~Executor()
|
/external/chromium_org/remoting/client/plugin/ |
D | pepper_address_resolver.cc | 14 : resolver_(instance), in PepperAddressResolver() 30 int result = resolver_.Resolve( in Start() 69 int count = resolver_.GetNetAddressCount(); in OnResolved() 71 pp::NetAddress address = resolver_.GetNetAddress(i); in OnResolved()
|
/external/chromium_org/net/http/ |
D | http_auth_handler_negotiate.cc | 23 resolver_(NULL), in Factory() 36 resolver_ = resolver; in set_host_resolver() 62 url_security_manager(), resolver_, in CreateAuthHandler() 79 resolver_, disable_cname_lookup_, in CreateAuthHandler() 104 resolver_(resolver), in HttpAuthHandlerNegotiate() 282 if (disable_cname_lookup_ || !resolver_) in DoResolveCanonicalName() 289 single_resolve_.reset(new SingleRequestHostResolver(resolver_)); in DoResolveCanonicalName()
|
D | http_auth_handler_negotiate_unittest.cc | 34 resolver_.reset(new MockHostResolver()); in SetUp() 35 resolver_->rules()->AddIPLiteralRule("alias", "10.0.0.2", in SetUp() 42 factory_->set_host_resolver(resolver_.get()); in SetUp() 181 resolver_->set_synchronous_mode(synchronous_resolve_mode); in CreateHandler() 211 scoped_ptr<MockHostResolver> resolver_; member in net::HttpAuthHandlerNegotiateTest
|
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/client/ |
D | peer_connection_client.cc | 67 resolver_(NULL), in PeerConnectionClient() 136 resolver_ = new rtc::AsyncResolver(); in Connect() 137 resolver_->SignalDone.connect(this, &PeerConnectionClient::OnResolveResult); in Connect() 138 resolver_->Start(server_address_); in Connect() 146 if (resolver_->GetError() != 0) { in OnResolveResult() 148 resolver_->Destroy(false); in OnResolveResult() 149 resolver_ = NULL; in OnResolveResult() 152 server_address_ = resolver_->address(); in OnResolveResult() 236 if (resolver_ != NULL) { in Close() 237 resolver_->Destroy(false); in Close() [all …]
|
/external/chromium_org/content/browser/renderer_host/pepper/ |
D | pepper_lookup_request.h | 30 : resolver_(resolver), in PepperLookupRequest() 38 resolver_.Resolve(request_info_, in Start() 54 net::SingleRequestHostResolver resolver_; variable
|
/external/chromium_org/mojo/bindings/js/ |
D | drain_data.cc | 30 CHECK(resolver_.IsEmpty()); in GetPromise() 33 resolver_.Reset(isolate_, resolver); in GetPromise() 40 resolver_.Reset(); in ~DrainData() 115 v8::Local<v8::Promise::Resolver>::New(isolate_, resolver_)); in DeliverData()
|
/external/chromium_org/chrome/common/local_discovery/ |
D | service_discovery_client_unittest.cc | 423 resolver_ = service_discovery_client_.CreateServiceResolver( in SetUp() 444 scoped_ptr<ServiceResolver> resolver_; member in local_discovery::__anon0f1109910111::ServiceResolverTest 454 resolver_->StartResolving(); in TEST_F() 472 resolver_->StartResolving(); in TEST_F() 488 resolver_->StartResolving(); in TEST_F() 506 resolver_->StartResolving(); in TEST_F()
|
/external/chromium_org/native_client_sdk/src/examples/api/socket/ |
D | socket.cc | 57 pp::HostResolver resolver_; member in ExampleInstance 163 resolver_ = pp::HostResolver(this); in Connect() 164 if (resolver_.is_null()) { in Connect() 180 resolver_.Resolve(hostname.c_str(), port, hint, callback); in Connect() 190 pp::NetAddress addr = resolver_.GetNetAddress(0); in OnResolveCompletion()
|
/external/chromium_org/chromeos/network/ |
D | host_resolver_impl_chromeos.cc | 41 : resolver_(resolver), in NetworkObserver() 110 if (resolver_) in SetIpAddressOnResolverThread() 111 resolver_->SetIPAddresses(ipv4_address, ipv6_address); in SetIpAddressOnResolverThread() 114 base::WeakPtr<HostResolverImplChromeOS> resolver_; member in chromeos::HostResolverImplChromeOS::NetworkObserver
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
D | turnport.cc | 190 resolver_(NULL), in TurnPort() 215 resolver_(NULL), in TurnPort() 230 if (resolver_) { in ~TurnPort() 231 resolver_->Destroy(false); in ~TurnPort() 529 if (resolver_) in ResolveTurnAddress() 532 resolver_ = socket_factory()->CreateAsyncResolver(); in ResolveTurnAddress() 533 resolver_->SignalDone.connect(this, &TurnPort::OnResolveResult); in ResolveTurnAddress() 534 resolver_->Start(address); in ResolveTurnAddress() 538 ASSERT(resolver == resolver_); in OnResolveResult() 543 if (resolver_->GetError() != 0 && server_address_.proto == PROTO_TCP) { in OnResolveResult() [all …]
|
D | stunport.cc | 336 if (!resolver_) { in ResolveStunAddress() 337 resolver_.reset(new AddressResolver(socket_factory())); in ResolveStunAddress() 338 resolver_->SignalDone.connect(this, &UDPPort::OnResolveResult); in ResolveStunAddress() 341 resolver_->Resolve(stun_addr); in ResolveStunAddress() 346 ASSERT(resolver_.get() != NULL); in OnResolveResult() 350 !resolver_->GetResolvedAddress(input, ip().family(), &resolved)) { in OnResolveResult()
|
/external/chromium_org/net/url_request/ |
D | url_fetcher_impl_unittest.cc | 157 MockHostResolver resolver_; member in net::URLFetcherMockDnsTest 193 resolver_.set_ondemand_mode(true); in SetUp() 194 resolver_.rules()->AddRule("example.com", "127.0.0.1"); in SetUp() 197 context_->set_host_resolver(&resolver_); in SetUp() 945 EXPECT_FALSE(resolver_.has_pending_requests()); in TEST_F() 955 EXPECT_TRUE(resolver_.has_pending_requests()); in TEST_F() 962 EXPECT_FALSE(resolver_.has_pending_requests()); in TEST_F() 971 EXPECT_FALSE(resolver_.has_pending_requests()); in TEST_F() 982 EXPECT_TRUE(resolver_.has_pending_requests()); in TEST_F() 993 EXPECT_TRUE(resolver_.has_pending_requests()); in TEST_F() [all …]
|