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

Unified Diff: net/spdy/spdy_session_key.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/spdy/spdy_session_key.h ('k') | net/spdy/spdy_session_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_key.cc
diff --git a/net/spdy/spdy_session_key.cc b/net/spdy/spdy_session_key.cc
deleted file mode 100644
index 3ef95de5c3ab1dea27dfa66a381e139d8bbe8d7c..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_session_key.cc
+++ /dev/null
@@ -1,50 +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/spdy/spdy_session_key.h"
-
-#include "base/logging.h"
-
-namespace net {
-
-SpdySessionKey::SpdySessionKey() : privacy_mode_(PRIVACY_MODE_DISABLED) {
-}
-
-SpdySessionKey::SpdySessionKey(const HostPortPair& host_port_pair,
- const ProxyServer& proxy_server,
- PrivacyMode privacy_mode)
- : host_port_proxy_pair_(host_port_pair, proxy_server),
- privacy_mode_(privacy_mode) {
- DVLOG(1) << "SpdySessionKey(host=" << host_port_pair.ToString()
- << ", proxy=" << proxy_server.ToURI()
- << ", privacy=" << privacy_mode;
-}
-
-SpdySessionKey::SpdySessionKey(const HostPortProxyPair& host_port_proxy_pair,
- PrivacyMode privacy_mode)
- : host_port_proxy_pair_(host_port_proxy_pair),
- privacy_mode_(privacy_mode) {
- DVLOG(1) << "SpdySessionKey(hppp=" << host_port_proxy_pair.first.ToString()
- << "," << host_port_proxy_pair.second.ToURI()
- << ", privacy=" << privacy_mode;
-}
-
-SpdySessionKey::~SpdySessionKey() {}
-
-bool SpdySessionKey::operator<(const SpdySessionKey& other) const {
- if (privacy_mode_ != other.privacy_mode_)
- return privacy_mode_ < other.privacy_mode_;
- if (!host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first))
- return host_port_proxy_pair_.first < other.host_port_proxy_pair_.first;
- return host_port_proxy_pair_.second < other.host_port_proxy_pair_.second;
-}
-
-bool SpdySessionKey::Equals(const SpdySessionKey& other) const {
- return privacy_mode_ == other.privacy_mode_ &&
- host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) &&
- host_port_proxy_pair_.second == other.host_port_proxy_pair_.second;
-}
-
-} // namespace net
-
« no previous file with comments | « net/spdy/spdy_session_key.h ('k') | net/spdy/spdy_session_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698