Chromium Code Reviews| Index: net/http/http_pipelined_host.cc |
| diff --git a/net/http/http_pipelined_host.cc b/net/http/http_pipelined_host.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..768e8b9988e0df84a566d3a95dbdc826a5898ec0 |
| --- /dev/null |
| +++ b/net/http/http_pipelined_host.cc |
| @@ -0,0 +1,23 @@ |
| +// 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/http/http_pipelined_host.h" |
| + |
| +namespace net { |
| + |
| +HttpPipelinedHost::Key::Key(const HostPortPair& origin, bool force_pipelining) : |
|
mmenke
2012/02/23 18:54:58
nit: Colon should go on next line.
James Simonsen
2012/02/23 23:49:46
Done.
|
| + origin_(origin), |
| + force_pipelining_(force_pipelining) { |
| +} |
| + |
| +bool HttpPipelinedHost::Key::operator<(const Key& rhs) const { |
| + if (origin_ < rhs.origin_) { |
| + return true; |
| + } else if (rhs.origin_ < origin_) { |
| + return false; |
| + } |
| + return force_pipelining_ < rhs.force_pipelining_; |
| +} |
| + |
| +} // namespace net |