| OLD | NEW |
| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 const HttpRequestHeaders& GetHeaders() const { | 29 const HttpRequestHeaders& GetHeaders() const { |
| 30 return headers_; | 30 return headers_; |
| 31 } | 31 } |
| 32 | 32 |
| 33 const std::string& GetLine() const { | 33 const std::string& GetLine() const { |
| 34 return line_; | 34 return line_; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // NetLog::EventParameters | 37 // NetLog::EventParameters |
| 38 virtual base::Value* ToValue() const; | 38 virtual base::Value* ToValue() const OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 virtual ~NetLogHttpRequestParameter(); | 41 virtual ~NetLogHttpRequestParameter(); |
| 42 | 42 |
| 43 const std::string line_; | 43 const std::string line_; |
| 44 HttpRequestHeaders headers_; | 44 HttpRequestHeaders headers_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(NetLogHttpRequestParameter); | 46 DISALLOW_COPY_AND_ASSIGN(NetLogHttpRequestParameter); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 class NetLogHttpResponseParameter : public NetLog::EventParameters { | 49 class NetLogHttpResponseParameter : public NetLog::EventParameters { |
| 50 public: | 50 public: |
| 51 explicit NetLogHttpResponseParameter( | 51 explicit NetLogHttpResponseParameter( |
| 52 const scoped_refptr<HttpResponseHeaders>& headers); | 52 const scoped_refptr<HttpResponseHeaders>& headers); |
| 53 | 53 |
| 54 const HttpResponseHeaders& GetHeaders() const { | 54 const HttpResponseHeaders& GetHeaders() const { |
| 55 return *headers_; | 55 return *headers_; |
| 56 } | 56 } |
| 57 | 57 |
| 58 // NetLog::EventParameters | 58 // NetLog::EventParameters |
| 59 virtual base::Value* ToValue() const; | 59 virtual base::Value* ToValue() const OVERRIDE; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 virtual ~NetLogHttpResponseParameter(); | 62 virtual ~NetLogHttpResponseParameter(); |
| 63 | 63 |
| 64 const scoped_refptr<HttpResponseHeaders> headers_; | 64 const scoped_refptr<HttpResponseHeaders> headers_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(NetLogHttpResponseParameter); | 66 DISALLOW_COPY_AND_ASSIGN(NetLogHttpResponseParameter); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace net | 69 } // namespace net |
| 70 | 70 |
| 71 #endif // NET_HTTP_HTTP_NET_LOG_PARAMS_H_ | 71 #endif // NET_HTTP_HTTP_NET_LOG_PARAMS_H_ |
| OLD | NEW |