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

Unified Diff: net/quic/quic_session_key.cc

Issue 218923002: Merge internal change: 63891842 - QuicServerId changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: net/quic/quic_session_key.cc
diff --git a/net/quic/quic_session_key.cc b/net/quic/quic_session_key.cc
deleted file mode 100644
index 8ffd52490a95a484ebccc1f489117c3a45ead7be..0000000000000000000000000000000000000000
--- a/net/quic/quic_session_key.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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/quic/quic_session_key.h"
-
-using std::string;
-
-namespace net {
-
-QuicSessionKey::QuicSessionKey() {}
-
-QuicSessionKey::QuicSessionKey(const HostPortPair& host_port_pair,
- bool is_https,
- PrivacyMode privacy_mode)
- : host_port_pair_(host_port_pair),
- is_https_(is_https),
- privacy_mode_(privacy_mode) {}
-
-QuicSessionKey::QuicSessionKey(const string& host,
- uint16 port,
- bool is_https,
- PrivacyMode privacy_mode)
- : host_port_pair_(host, port),
- is_https_(is_https),
- privacy_mode_(privacy_mode) {}
-
-QuicSessionKey::~QuicSessionKey() {}
-
-bool QuicSessionKey::operator<(const QuicSessionKey& other) const {
- if (!host_port_pair_.Equals(other.host_port_pair_)) {
- return host_port_pair_ < other.host_port_pair_;
- }
- if (is_https_ != other.is_https_) {
- return is_https_ < other.is_https_;
- }
- return privacy_mode_ < other.privacy_mode_;
-}
-
-bool QuicSessionKey::operator==(const QuicSessionKey& other) const {
- return is_https_ == other.is_https_ &&
- privacy_mode_ == other.privacy_mode_ &&
- host_port_pair_.Equals(other.host_port_pair_);
-}
-
-string QuicSessionKey::ToString() const {
- return (is_https_ ? "https://" : "http://") + host_port_pair_.ToString() +
- (privacy_mode_ == kPrivacyModeEnabled ? "/private" : "");
-}
-
-} // namespace net

Powered by Google App Engine
This is Rietveld 408576698