Remove HostResolver::RequestInfo's priority parameter
Make it part of the HostResolver::Resolve() call instead.
This makes it possible for RequestInfo to remain constant for the
lifetime of a request.
This also has the nice side effect for not needing to pass a priority
for ResolveFromCache() calls.
BUG=166689
[email protected], [email protected], [email protected]
Review URL: https://codereview.chromium.org/22824022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218525 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/quic/quic_network_transaction_unittest.cc b/net/quic/quic_network_transaction_unittest.cc
index 948cfcf..88da431 100644
--- a/net/quic/quic_network_transaction_unittest.cc
+++ b/net/quic/quic_network_transaction_unittest.cc
@@ -678,10 +678,13 @@
// synchronously.
host_resolver_.set_synchronous_mode(true);
host_resolver_.rules()->AddIPLiteralRule("www.google.com", "192.168.0.1", "");
- HostResolver::RequestInfo info(HostPortPair("www.google.com", 80),
- DEFAULT_PRIORITY);
+ HostResolver::RequestInfo info(HostPortPair("www.google.com", 80));
AddressList address;
- host_resolver_.Resolve(info, &address, CompletionCallback(), NULL,
+ host_resolver_.Resolve(info,
+ DEFAULT_PRIORITY,
+ &address,
+ CompletionCallback(),
+ NULL,
net_log_.bound());
CreateSession();
@@ -728,11 +731,10 @@
// before encrypting so the HTTP job will still start.
host_resolver_.set_synchronous_mode(true);
host_resolver_.rules()->AddIPLiteralRule("www.google.com", "192.168.0.1", "");
- HostResolver::RequestInfo info(HostPortPair("www.google.com", 80),
- DEFAULT_PRIORITY);
+ HostResolver::RequestInfo info(HostPortPair("www.google.com", 80));
AddressList address;
- host_resolver_.Resolve(info, &address, CompletionCallback(), NULL,
- net_log_.bound());
+ host_resolver_.Resolve(info, DEFAULT_PRIORITY, &address,
+ CompletionCallback(), NULL, net_log_.bound());
CreateSession();
session_->quic_stream_factory()->set_require_confirmation(true);