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

Side by Side Diff: net/http/http_net_log_params.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/disk_cache/net_log_parameters.h ('k') | net/http/http_network_session.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_HTTP_HTTP_NET_LOG_PARAMS_H_ 5 #ifndef NET_HTTP_HTTP_NET_LOG_PARAMS_H_
6 #define NET_HTTP_HTTP_NET_LOG_PARAMS_H_ 6 #define NET_HTTP_HTTP_NET_LOG_PARAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "net/base/net_log.h" 13 #include "net/base/net_log.h"
14 #include "net/http/http_request_headers.h" 14 #include "net/http/http_request_headers.h"
15 15
16 namespace base {
16 class Value; 17 class Value;
18 }
17 19
18 namespace net { 20 namespace net {
19 21
20 class HttpResponseHeaders; 22 class HttpResponseHeaders;
21 23
22 class NetLogHttpRequestParameter : public NetLog::EventParameters { 24 class NetLogHttpRequestParameter : public NetLog::EventParameters {
23 public: 25 public:
24 NetLogHttpRequestParameter(const std::string& line, 26 NetLogHttpRequestParameter(const std::string& line,
25 const HttpRequestHeaders& headers); 27 const HttpRequestHeaders& headers);
26 28
27 const HttpRequestHeaders& GetHeaders() const { 29 const HttpRequestHeaders& GetHeaders() const {
28 return headers_; 30 return headers_;
29 } 31 }
30 32
31 const std::string& GetLine() const { 33 const std::string& GetLine() const {
32 return line_; 34 return line_;
33 } 35 }
34 36
35 // NetLog::EventParameters 37 // NetLog::EventParameters
36 virtual Value* ToValue() const; 38 virtual base::Value* ToValue() const;
37 39
38 private: 40 private:
39 virtual ~NetLogHttpRequestParameter(); 41 virtual ~NetLogHttpRequestParameter();
40 42
41 const std::string line_; 43 const std::string line_;
42 HttpRequestHeaders headers_; 44 HttpRequestHeaders headers_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(NetLogHttpRequestParameter); 46 DISALLOW_COPY_AND_ASSIGN(NetLogHttpRequestParameter);
45 }; 47 };
46 48
47 class NetLogHttpResponseParameter : public NetLog::EventParameters { 49 class NetLogHttpResponseParameter : public NetLog::EventParameters {
48 public: 50 public:
49 explicit NetLogHttpResponseParameter( 51 explicit NetLogHttpResponseParameter(
50 const scoped_refptr<HttpResponseHeaders>& headers); 52 const scoped_refptr<HttpResponseHeaders>& headers);
51 53
52 const HttpResponseHeaders& GetHeaders() const { 54 const HttpResponseHeaders& GetHeaders() const {
53 return *headers_; 55 return *headers_;
54 } 56 }
55 57
56 // NetLog::EventParameters 58 // NetLog::EventParameters
57 virtual Value* ToValue() const; 59 virtual base::Value* ToValue() const;
58 60
59 private: 61 private:
60 virtual ~NetLogHttpResponseParameter(); 62 virtual ~NetLogHttpResponseParameter();
61 63
62 const scoped_refptr<HttpResponseHeaders> headers_; 64 const scoped_refptr<HttpResponseHeaders> headers_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(NetLogHttpResponseParameter); 66 DISALLOW_COPY_AND_ASSIGN(NetLogHttpResponseParameter);
65 }; 67 };
66 68
67 } // namespace net 69 } // namespace net
68 70
69 #endif // NET_HTTP_HTTP_NET_LOG_PARAMS_H_ 71 #endif // NET_HTTP_HTTP_NET_LOG_PARAMS_H_
70
OLDNEW
« no previous file with comments | « net/disk_cache/net_log_parameters.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698