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

Unified Diff: net/quic/quic_server_id.h

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/quic/quic_server_bin.cc ('k') | net/quic/quic_server_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_server_id.h
diff --git a/net/quic/quic_server_id.h b/net/quic/quic_server_id.h
deleted file mode 100644
index 6d016705cd81a72df3b2a490c3f9b9d4128e1318..0000000000000000000000000000000000000000
--- a/net/quic/quic_server_id.h
+++ /dev/null
@@ -1,60 +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.
-
-#ifndef NET_QUIC_QUIC_SERVER_ID_H_
-#define NET_QUIC_QUIC_SERVER_ID_H_
-
-#include <string>
-
-#include "net/base/host_port_pair.h"
-#include "net/base/net_export.h"
-#include "net/base/privacy_mode.h"
-
-namespace net {
-
-// The id used to identify sessions. Includes the hostname, port, scheme and
-// privacy_mode.
-class NET_EXPORT_PRIVATE QuicServerId {
- public:
- QuicServerId();
- QuicServerId(const HostPortPair& host_port_pair,
- bool is_https,
- PrivacyMode privacy_mode);
- QuicServerId(const std::string& host,
- uint16 port,
- bool is_https);
- QuicServerId(const std::string& host,
- uint16 port,
- bool is_https,
- PrivacyMode privacy_mode);
- ~QuicServerId();
-
- // Needed to be an element of std::set.
- bool operator<(const QuicServerId& other) const;
- bool operator==(const QuicServerId& other) const;
-
- // ToString() will convert the QuicServerId to "scheme:hostname:port" or
- // "scheme:hostname:port/private". "scheme" would either be "http" or "https"
- // based on |is_https|.
- std::string ToString() const;
-
- const HostPortPair& host_port_pair() const { return host_port_pair_; }
-
- const std::string& host() const { return host_port_pair_.host(); }
-
- uint16 port() const { return host_port_pair_.port(); }
-
- bool is_https() const { return is_https_; }
-
- PrivacyMode privacy_mode() const { return privacy_mode_; }
-
- private:
- HostPortPair host_port_pair_;
- bool is_https_;
- PrivacyMode privacy_mode_;
-};
-
-} // namespace net
-
-#endif // NET_QUIC_QUIC_SERVER_ID_H_
« no previous file with comments | « net/quic/quic_server_bin.cc ('k') | net/quic/quic_server_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698