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

Side by Side Diff: net/http/http_pipelined_connection_impl.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
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_connection_impl.h" 5 #include "net/http/http_pipelined_connection_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "net/base/io_buffer.h" 12 #include "net/base/io_buffer.h"
13 #include "net/http/http_pipelined_stream.h" 13 #include "net/http/http_pipelined_stream.h"
14 #include "net/http/http_request_info.h" 14 #include "net/http/http_request_info.h"
15 #include "net/http/http_response_body_drainer.h" 15 #include "net/http/http_response_body_drainer.h"
16 #include "net/http/http_response_headers.h" 16 #include "net/http/http_response_headers.h"
17 #include "net/http/http_stream_parser.h" 17 #include "net/http/http_stream_parser.h"
18 #include "net/http/http_version.h" 18 #include "net/http/http_version.h"
19 #include "net/socket/client_socket_handle.h" 19 #include "net/socket/client_socket_handle.h"
20 20
21 using base::DictionaryValue;
22 using base::Value;
23
24 namespace net { 21 namespace net {
25 22
26 namespace { 23 namespace {
27 24
28 Value* NetLogReceivedHeadersCallback(const NetLog::Source& source, 25 base::Value* NetLogReceivedHeadersCallback(const NetLog::Source& source,
29 const std::string* feedback, 26 const std::string* feedback,
30 NetLog::LogLevel /* log_level */) { 27 NetLog::LogLevel /* log_level */) {
31 DictionaryValue* dict = new DictionaryValue; 28 base::DictionaryValue* dict = new base::DictionaryValue;
32 source.AddToEventParameters(dict); 29 source.AddToEventParameters(dict);
33 dict->SetString("feedback", *feedback); 30 dict->SetString("feedback", *feedback);
34 return dict; 31 return dict;
35 } 32 }
36 33
37 Value* NetLogStreamClosedCallback(const NetLog::Source& source, 34 base::Value* NetLogStreamClosedCallback(const NetLog::Source& source,
38 bool not_reusable, 35 bool not_reusable,
39 NetLog::LogLevel /* log_level */) { 36 NetLog::LogLevel /* log_level */) {
40 DictionaryValue* dict = new DictionaryValue; 37 base::DictionaryValue* dict = new base::DictionaryValue;
41 source.AddToEventParameters(dict); 38 source.AddToEventParameters(dict);
42 dict->SetBoolean("not_reusable", not_reusable); 39 dict->SetBoolean("not_reusable", not_reusable);
43 return dict; 40 return dict;
44 } 41 }
45 42
46 Value* NetLogHostPortPairCallback(const HostPortPair* host_port_pair, 43 base::Value* NetLogHostPortPairCallback(const HostPortPair* host_port_pair,
47 NetLog::LogLevel /* log_level */) { 44 NetLog::LogLevel /* log_level */) {
48 DictionaryValue* dict = new DictionaryValue; 45 base::DictionaryValue* dict = new base::DictionaryValue;
49 dict->SetString("host_and_port", host_port_pair->ToString()); 46 dict->SetString("host_and_port", host_port_pair->ToString());
50 return dict; 47 return dict;
51 } 48 }
52 49
53 } // anonymous namespace 50 } // anonymous namespace
54 51
55 HttpPipelinedConnection* 52 HttpPipelinedConnection*
56 HttpPipelinedConnectionImpl::Factory::CreateNewPipeline( 53 HttpPipelinedConnectionImpl::Factory::CreateNewPipeline(
57 ClientSocketHandle* connection, 54 ClientSocketHandle* connection,
58 HttpPipelinedConnection::Delegate* delegate, 55 HttpPipelinedConnection::Delegate* delegate,
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 } 829 }
833 830
834 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo() 831 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo()
835 : state(STREAM_CREATED) { 832 : state(STREAM_CREATED) {
836 } 833 }
837 834
838 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() { 835 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() {
839 } 836 }
840 837
841 } // namespace net 838 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_spdy3_unittest.cc ('k') | net/http/http_pipelined_host_forced.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698