Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: net/quic/chromium/quic_stream_factory.cc

Issue 2789403002: Remove an unused QuicStreamFactory::Job constructor (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.cc
diff --git a/net/quic/chromium/quic_stream_factory.cc b/net/quic/chromium/quic_stream_factory.cc
index 88650c7bd7971796e2041e768ad86720bc51cca0..e7d2e7befa35c0948eb68324bfc5f11cc3d1f20d 100644
--- a/net/quic/chromium/quic_stream_factory.cc
+++ b/net/quic/chromium/quic_stream_factory.cc
@@ -286,12 +286,12 @@ class QuicStreamFactory::CertVerifierJob {
const QuicServerId& server_id() const { return server_id_; }
private:
- QuicServerId server_id_;
+ const QuicServerId server_id_;
ProofVerifierCallbackImpl* verify_callback_;
std::unique_ptr<ProofVerifyContext> verify_context_;
std::unique_ptr<ProofVerifyDetails> verify_details_;
std::string verify_error_details_;
- base::TimeTicks start_time_;
+ const base::TimeTicks start_time_;
const NetLogWithSource net_log_;
CompletionCallback callback_;
base::WeakPtrFactory<CertVerifierJob> weak_factory_;
@@ -359,9 +359,9 @@ class QuicStreamFactory::Job {
QuicStreamFactory* factory_;
HostResolver* host_resolver_;
std::unique_ptr<HostResolver::Request> request_;
- QuicSessionKey key_;
- int cert_verify_flags_;
- bool was_alternative_service_recently_broken_;
+ const QuicSessionKey key_;
+ const int cert_verify_flags_;
+ const bool was_alternative_service_recently_broken_;
std::unique_ptr<QuicServerInfo> server_info_;
bool started_another_job_;
const NetLogWithSource net_log_;
@@ -396,22 +396,6 @@ QuicStreamFactory::Job::Job(QuicStreamFactory* factory,
session_(nullptr),
weak_factory_(this) {}
-QuicStreamFactory::Job::Job(QuicStreamFactory* factory,
- HostResolver* host_resolver,
- QuicChromiumClientSession* session,
- const QuicSessionKey& key)
- : io_state_(STATE_RESUME_CONNECT),
- factory_(factory),
- host_resolver_(host_resolver), // unused
- key_(key),
- cert_verify_flags_(0), // unused
- was_alternative_service_recently_broken_(false), // unused
- started_another_job_(false), // unused
- net_log_(session->net_log()), // unused
- num_sent_client_hellos_(0),
- session_(session),
- weak_factory_(this) {}
Zhongyi Shi 2017/04/05 00:00:29 Tracing the history of this code, this Job was use
Ryan Hamilton 2017/04/05 00:10:10 Nice catch, both of you. I agree with this suggest
xunjieli 2017/04/05 15:07:29 Done. Good catch! The tests added in that CL are a
-
QuicStreamFactory::Job::~Job() {
DCHECK(callback_.is_null());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698