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

Side by Side Diff: net/http/http_pipelined_host_pool.cc

Issue 15662008: Make net and ipc explicitly use the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_pipelined_host_impl.cc ('k') | net/http/http_proxy_client_socket_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_pipelined_host_pool.h" 5 #include "net/http/http_pipelined_host_pool.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "net/http/http_pipelined_host_capability.h" 10 #include "net/http/http_pipelined_host_capability.h"
11 #include "net/http/http_pipelined_host_forced.h" 11 #include "net/http/http_pipelined_host_forced.h"
12 #include "net/http/http_pipelined_host_impl.h" 12 #include "net/http/http_pipelined_host_impl.h"
13 #include "net/http/http_server_properties.h" 13 #include "net/http/http_server_properties.h"
14 14
15 using base::ListValue;
16 using base::Value;
17
18 namespace net { 15 namespace net {
19 16
20 class HttpPipelinedHostImplFactory : public HttpPipelinedHost::Factory { 17 class HttpPipelinedHostImplFactory : public HttpPipelinedHost::Factory {
21 public: 18 public:
22 virtual HttpPipelinedHost* CreateNewHost( 19 virtual HttpPipelinedHost* CreateNewHost(
23 HttpPipelinedHost::Delegate* delegate, 20 HttpPipelinedHost::Delegate* delegate,
24 const HttpPipelinedHost::Key& key, 21 const HttpPipelinedHost::Key& key,
25 HttpPipelinedConnection::Factory* factory, 22 HttpPipelinedConnection::Factory* factory,
26 HttpPipelinedHostCapability capability, 23 HttpPipelinedHostCapability capability,
27 bool force_pipelining) OVERRIDE { 24 bool force_pipelining) OVERRIDE {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 delegate_->OnHttpPipelinedHostHasAdditionalCapacity(host); 125 delegate_->OnHttpPipelinedHostHasAdditionalCapacity(host);
129 } 126 }
130 127
131 void HttpPipelinedHostPool::OnHostDeterminedCapability( 128 void HttpPipelinedHostPool::OnHostDeterminedCapability(
132 HttpPipelinedHost* host, 129 HttpPipelinedHost* host,
133 HttpPipelinedHostCapability capability) { 130 HttpPipelinedHostCapability capability) {
134 http_server_properties_->SetPipelineCapability(host->GetKey().origin(), 131 http_server_properties_->SetPipelineCapability(host->GetKey().origin(),
135 capability); 132 capability);
136 } 133 }
137 134
138 Value* HttpPipelinedHostPool::PipelineInfoToValue() const { 135 base::Value* HttpPipelinedHostPool::PipelineInfoToValue() const {
139 ListValue* list = new ListValue(); 136 base::ListValue* list = new base::ListValue();
140 for (HostMap::const_iterator it = host_map_.begin(); 137 for (HostMap::const_iterator it = host_map_.begin();
141 it != host_map_.end(); ++it) { 138 it != host_map_.end(); ++it) {
142 Value* value = it->second->PipelineInfoToValue(); 139 base::Value* value = it->second->PipelineInfoToValue();
143 list->Append(value); 140 list->Append(value);
144 } 141 }
145 return list; 142 return list;
146 } 143 }
147 144
148 } // namespace net 145 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_pipelined_host_impl.cc ('k') | net/http/http_proxy_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698