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

Unified Diff: net/http/http_pipelined_host.cc

Issue 9433015: Add a force pipelining option to load flags. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix build on other platforms Created 8 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698