OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/http/http_pipelined_host.h" | |
6 | |
7 namespace net { | |
8 | |
9 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.
| |
10 origin_(origin), | |
11 force_pipelining_(force_pipelining) { | |
12 } | |
13 | |
14 bool HttpPipelinedHost::Key::operator<(const Key& rhs) const { | |
15 if (origin_ < rhs.origin_) { | |
16 return true; | |
17 } else if (rhs.origin_ < origin_) { | |
18 return false; | |
19 } | |
20 return force_pipelining_ < rhs.force_pipelining_; | |
21 } | |
22 | |
23 } // namespace net | |
OLD | NEW |