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

Unified Diff: net/tools/quic/quic_client_session.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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_client_session.h ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_session.cc
diff --git a/net/tools/quic/quic_client_session.cc b/net/tools/quic/quic_client_session.cc
deleted file mode 100644
index 92eec0415df0840d686f19f746973183d6f83dde..0000000000000000000000000000000000000000
--- a/net/tools/quic/quic_client_session.cc
+++ /dev/null
@@ -1,80 +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.
-
-#include "net/tools/quic/quic_client_session.h"
-
-#include "base/logging.h"
-#include "net/quic/crypto/crypto_protocol.h"
-#include "net/quic/quic_server_id.h"
-#include "net/tools/quic/quic_spdy_client_stream.h"
-
-using std::string;
-
-namespace net {
-namespace tools {
-
-QuicClientSession::QuicClientSession(const QuicConfig& config,
- QuicConnection* connection)
- : QuicClientSessionBase(connection, config), respect_goaway_(true) {
-}
-
-QuicClientSession::~QuicClientSession() {
-}
-
-void QuicClientSession::InitializeSession(
- const QuicServerId& server_id,
- QuicCryptoClientConfig* crypto_config) {
- crypto_stream_.reset(
- new QuicCryptoClientStream(server_id, this, nullptr, crypto_config));
- QuicClientSessionBase::InitializeSession();
-}
-
-void QuicClientSession::OnProofValid(
- const QuicCryptoClientConfig::CachedState& /*cached*/) {}
-
-void QuicClientSession::OnProofVerifyDetailsAvailable(
- const ProofVerifyDetails& /*verify_details*/) {}
-
-QuicSpdyClientStream* QuicClientSession::CreateOutgoingDataStream() {
- if (!crypto_stream_->encryption_established()) {
- DVLOG(1) << "Encryption not active so no outgoing stream created.";
- return nullptr;
- }
- if (GetNumOpenStreams() >= get_max_open_streams()) {
- DVLOG(1) << "Failed to create a new outgoing stream. "
- << "Already " << GetNumOpenStreams() << " open.";
- return nullptr;
- }
- if (goaway_received() && respect_goaway_) {
- DVLOG(1) << "Failed to create a new outgoing stream. "
- << "Already received goaway.";
- return nullptr;
- }
- QuicSpdyClientStream* stream
- = new QuicSpdyClientStream(GetNextStreamId(), this);
- ActivateStream(stream);
- return stream;
-}
-
-QuicCryptoClientStream* QuicClientSession::GetCryptoStream() {
- return crypto_stream_.get();
-}
-
-void QuicClientSession::CryptoConnect() {
- DCHECK(flow_controller());
- crypto_stream_->CryptoConnect();
-}
-
-int QuicClientSession::GetNumSentClientHellos() const {
- return crypto_stream_->num_sent_client_hellos();
-}
-
-QuicDataStream* QuicClientSession::CreateIncomingDataStream(
- QuicStreamId id) {
- DLOG(ERROR) << "Server push not supported";
- return nullptr;
-}
-
-} // namespace tools
-} // namespace net
« no previous file with comments | « net/tools/quic/quic_client_session.h ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698