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

Unified Diff: net/tools/quic/quic_simple_client_session.h

Issue 1035533006: Unify the QUIC client classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ssize_t Created 5 years, 9 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 | « net/tools/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_client_session.h
diff --git a/net/tools/quic/quic_simple_client_session.h b/net/tools/quic/quic_simple_client_session.h
deleted file mode 100644
index 9bf19422d939f26d5973ece8df3f115e6b5bfc07..0000000000000000000000000000000000000000
--- a/net/tools/quic/quic_simple_client_session.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-// A client specific QuicSession subclass.
-
-#ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_
-#define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "net/quic/quic_client_session_base.h"
-#include "net/quic/quic_crypto_client_stream.h"
-#include "net/quic/quic_protocol.h"
-#include "net/tools/quic/quic_simple_client_stream.h"
-
-namespace net {
-
-class QuicConnection;
-class QuicServerId;
-class ReliableQuicStream;
-
-namespace tools {
-
-class QuicSimpleClientSession : public QuicClientSessionBase {
- public:
- QuicSimpleClientSession(const QuicConfig& config, QuicConnection* connection);
- ~QuicSimpleClientSession() override;
-
- void InitializeSession(const QuicServerId& server_id,
- QuicCryptoClientConfig* config);
-
- // QuicSession methods:
- QuicSimpleClientStream* CreateOutgoingDataStream() override;
- QuicCryptoClientStream* GetCryptoStream() override;
-
- // QuicSimpleClientSessionBase methods:
- void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override;
- void OnProofVerifyDetailsAvailable(
- const ProofVerifyDetails& verify_details) override;
-
- // Performs a crypto handshake with the server.
- void CryptoConnect();
-
- // Returns the number of client hello messages that have been sent on the
- // crypto stream. If the handshake has completed then this is one greater
- // than the number of round-trips needed for the handshake.
- int GetNumSentClientHellos() const;
-
- void set_respect_goaway(bool respect_goaway) {
- respect_goaway_ = respect_goaway;
- }
-
- protected:
- // QuicSession methods:
- QuicDataStream* CreateIncomingDataStream(QuicStreamId id) override;
-
- private:
- scoped_ptr<QuicCryptoClientStream> crypto_stream_;
-
- // If this is set to false, the client will ignore server GOAWAYs and allow
- // the creation of streams regardless of the high chance they will fail.
- bool respect_goaway_;
-
- DISALLOW_COPY_AND_ASSIGN(QuicSimpleClientSession);
-};
-
-} // namespace tools
-} // namespace net
-
-#endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_
« no previous file with comments | « net/tools/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698