OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "googleurl/src/gurl.h" |
| 11 #include "net/base/net_log.h" |
| 12 |
| 13 // Holds the parameters to emit to the NetLog when starting a URLRequest. |
| 14 class URLRequestStartEventParameters : public net::NetLog::EventParameters { |
| 15 public: |
| 16 URLRequestStartEventParameters(const GURL& url, |
| 17 const std::string& method, |
| 18 int load_flags); |
| 19 |
| 20 const GURL& url() const { |
| 21 return url_; |
| 22 } |
| 23 |
| 24 virtual Value* ToValue() const; |
| 25 |
| 26 private: |
| 27 const GURL url_; |
| 28 const std::string method_; |
| 29 const int load_flags_; |
| 30 }; |
| 31 |
| 32 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
OLD | NEW |