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_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> |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 virtual Value* ToValue() const; | 261 virtual Value* ToValue() const; |
262 | 262 |
263 private: | 263 private: |
264 const char* name_; | 264 const char* name_; |
265 const int value_; | 265 const int value_; |
266 }; | 266 }; |
267 | 267 |
268 // NetLogSourceParameter is a subclass of EventParameters that encapsulates a | 268 // NetLogSourceParameter is a subclass of EventParameters that encapsulates a |
269 // single NetLog::Source parameter. | 269 // single NetLog::Source parameter. |
270 class NetLogSourceParameter : public NetLog::EventParameters { | 270 class NET_API NetLogSourceParameter : public NetLog::EventParameters { |
271 public: | 271 public: |
272 // |name| must be a string literal. | 272 // |name| must be a string literal. |
273 NetLogSourceParameter(const char* name, const NetLog::Source& value) | 273 NetLogSourceParameter(const char* name, const NetLog::Source& value) |
274 : name_(name), value_(value) {} | 274 : name_(name), value_(value) {} |
275 | 275 |
276 const NetLog::Source& value() const { | 276 const NetLog::Source& value() const { |
277 return value_; | 277 return value_; |
278 } | 278 } |
279 | 279 |
280 virtual Value* ToValue() const; | 280 virtual Value* ToValue() const; |
(...skipping 23 matching lines...) Expand all Loading... |
304 | 304 |
305 private: | 305 private: |
306 BoundNetLog net_log_; | 306 BoundNetLog net_log_; |
307 const NetLog::EventType event_type_; | 307 const NetLog::EventType event_type_; |
308 scoped_refptr<NetLog::EventParameters> end_event_params_; | 308 scoped_refptr<NetLog::EventParameters> end_event_params_; |
309 }; | 309 }; |
310 | 310 |
311 } // namespace net | 311 } // namespace net |
312 | 312 |
313 #endif // NET_BASE_NET_LOG_H_ | 313 #endif // NET_BASE_NET_LOG_H_ |
OLD | NEW |