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.
5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
11 #include "base/basictypes.h"
12 #include "googleurl/src/gurl.h"
13 #include "net/base/net_log.h"
14 #include "net/base/request_priority.h"
18 // Holds the parameters to emit to the NetLog when starting a URLRequest.
19 class URLRequestStartEventParameters
: public NetLog::EventParameters
{
21 URLRequestStartEventParameters(const GURL
& url
,
22 const std::string
& method
,
24 RequestPriority priority
);
26 const GURL
& url() const {
30 int load_flags() const {
34 virtual Value
* ToValue() const;
38 const std::string method_
;
39 const int load_flags_
;
40 const RequestPriority priority_
;
42 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters
);
47 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_