| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" |
| 10 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 11 #include "net/base/net_log.h" | 12 #include "net/base/net_log.h" |
| 13 #include "net/base/request_priority.h" |
| 12 | 14 |
| 13 // Holds the parameters to emit to the NetLog when starting a URLRequest. | 15 // Holds the parameters to emit to the NetLog when starting a URLRequest. |
| 14 class URLRequestStartEventParameters : public net::NetLog::EventParameters { | 16 class URLRequestStartEventParameters : public net::NetLog::EventParameters { |
| 15 public: | 17 public: |
| 16 URLRequestStartEventParameters(const GURL& url, | 18 URLRequestStartEventParameters(const GURL& url, |
| 17 const std::string& method, | 19 const std::string& method, |
| 18 int load_flags); | 20 int load_flags, |
| 21 net::RequestPriority priority); |
| 19 | 22 |
| 20 const GURL& url() const { | 23 const GURL& url() const { |
| 21 return url_; | 24 return url_; |
| 22 } | 25 } |
| 23 | 26 |
| 24 virtual Value* ToValue() const; | 27 virtual Value* ToValue() const; |
| 25 | 28 |
| 26 private: | 29 private: |
| 27 const GURL url_; | 30 const GURL url_; |
| 28 const std::string method_; | 31 const std::string method_; |
| 29 const int load_flags_; | 32 const int load_flags_; |
| 33 const net::RequestPriority priority_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters); |
| 30 }; | 36 }; |
| 31 | 37 |
| 32 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ | 38 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
| OLD | NEW |