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

Unified Diff: net/quic/quic_socket_address_coder.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_session_test.cc ('k') | net/quic/quic_socket_address_coder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_socket_address_coder.h
diff --git a/net/quic/quic_socket_address_coder.h b/net/quic/quic_socket_address_coder.h
deleted file mode 100644
index 36ad1d03620facc083045948c9649d65c58e4626..0000000000000000000000000000000000000000
--- a/net/quic/quic_socket_address_coder.h
+++ /dev/null
@@ -1,45 +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_SOCKET_ADDRESS_CODER_H_
-#define NET_QUIC_QUIC_SOCKET_ADDRESS_CODER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "net/base/ip_endpoint.h"
-#include "net/base/net_export.h"
-
-namespace net {
-
-// Serializes and parses a socket address (IP address and port), to be used in
-// the kCADR tag in the ServerHello handshake message and the Public Reset
-// packet.
-class NET_EXPORT_PRIVATE QuicSocketAddressCoder {
- public:
- QuicSocketAddressCoder();
- explicit QuicSocketAddressCoder(const IPEndPoint& address);
- ~QuicSocketAddressCoder();
-
- std::string Encode() const;
-
- bool Decode(const char* data, size_t length);
-
- IPAddressNumber ip() const {
- return address_.address();
- }
-
- uint16 port() const {
- return address_.port();
- }
-
- private:
- IPEndPoint address_;
-
- DISALLOW_COPY_AND_ASSIGN(QuicSocketAddressCoder);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_QUIC_SOCKET_ADDRESS_CODER_H_
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_socket_address_coder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698