| 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..f2ba1d451a6b788668974ae330e68bb005f070ff
|
| --- /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)
|
| + : 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
|
|
|