diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 16:30:42 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 16:30:42 +0000 |
commit | 564b491ea6d163724307331648bd7b45cdada99e (patch) | |
tree | 135aa4b4e6e36e5ace999fb363c20b7913f4061d /net/base/host_port_pair.cc | |
parent | ad54c1966904ed5b3d7e71c8f6caf4606c7e6a93 (diff) | |
download | chromium_src-564b491ea6d163724307331648bd7b45cdada99e.zip chromium_src-564b491ea6d163724307331648bd7b45cdada99e.tar.gz chromium_src-564b491ea6d163724307331648bd7b45cdada99e.tar.bz2 |
SPDY: Add basic support for Alternate-Protocol header.
Review URL: http://codereview.chromium.org/668197
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_port_pair.cc')
-rw-r--r-- | net/base/host_port_pair.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/base/host_port_pair.cc b/net/base/host_port_pair.cc new file mode 100644 index 0000000..06a95fb --- /dev/null +++ b/net/base/host_port_pair.cc @@ -0,0 +1,14 @@ +// Copyright (c) 2010 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/base/host_port_pair.h" +#include "base/string_util.h" + +namespace net { + +std::string HostPortPair::ToString() const { + return StringPrintf("[Host: %s, Port: %u]", host.c_str(), port); +} + +} // namespace net |