| OLD | NEW |
| 1 // Copyright (c) 2011 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 #ifndef NET_BASE_NET_LOG_H_ | 5 #ifndef NET_BASE_NET_LOG_H_ |
| 6 #define NET_BASE_NET_LOG_H_ | 6 #define NET_BASE_NET_LOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 294 |
| 295 virtual base::Value* ToValue() const OVERRIDE; | 295 virtual base::Value* ToValue() const OVERRIDE; |
| 296 | 296 |
| 297 private: | 297 private: |
| 298 const char* const name_; | 298 const char* const name_; |
| 299 const std::string value_; | 299 const std::string value_; |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 // NetLogIntegerParameter is a subclass of EventParameters that encapsulates a | 302 // NetLogIntegerParameter is a subclass of EventParameters that encapsulates a |
| 303 // single integer parameter. | 303 // single integer parameter. |
| 304 class NetLogIntegerParameter : public NetLog::EventParameters { | 304 class NET_EXPORT NetLogIntegerParameter : public NetLog::EventParameters { |
| 305 public: | 305 public: |
| 306 // |name| must be a string literal. | 306 // |name| must be a string literal. |
| 307 NetLogIntegerParameter(const char* name, int value) | 307 NetLogIntegerParameter(const char* name, int value) |
| 308 : name_(name), value_(value) {} | 308 : name_(name), value_(value) {} |
| 309 | 309 |
| 310 int value() const { | 310 int value() const { |
| 311 return value_; | 311 return value_; |
| 312 } | 312 } |
| 313 | 313 |
| 314 virtual base::Value* ToValue() const OVERRIDE; | 314 virtual base::Value* ToValue() const OVERRIDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 357 |
| 358 private: | 358 private: |
| 359 BoundNetLog net_log_; | 359 BoundNetLog net_log_; |
| 360 const NetLog::EventType event_type_; | 360 const NetLog::EventType event_type_; |
| 361 scoped_refptr<NetLog::EventParameters> end_event_params_; | 361 scoped_refptr<NetLog::EventParameters> end_event_params_; |
| 362 }; | 362 }; |
| 363 | 363 |
| 364 } // namespace net | 364 } // namespace net |
| 365 | 365 |
| 366 #endif // NET_BASE_NET_LOG_H_ | 366 #endif // NET_BASE_NET_LOG_H_ |
| OLD | NEW |