blob: d084f240b19e1b7e24b49ff2f396316f31665a5f [file] [log] [blame]
[email protected]a9813302012-04-28 09:29:281// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2612834232010-05-14 21:52:362// 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_
[email protected]32b76ef2010-07-26 23:08:247#pragma once
[email protected]2612834232010-05-14 21:52:368
9#include <string>
10
[email protected]0c952052010-07-13 18:01:5011#include "base/basictypes.h"
[email protected]2612834232010-05-14 21:52:3612#include "googleurl/src/gurl.h"
[email protected]172da1b2011-08-12 15:52:2613#include "net/base/net_export.h"
[email protected]2612834232010-05-14 21:52:3614#include "net/base/net_log.h"
[email protected]0c952052010-07-13 18:01:5015#include "net/base/request_priority.h"
[email protected]2612834232010-05-14 21:52:3616
[email protected]4cc647d2010-12-17 22:46:4117namespace net {
18
19// Holds the parameters to emit to the NetLog when starting a URLRequest.
[email protected]172da1b2011-08-12 15:52:2620class NET_EXPORT URLRequestStartEventParameters
21 : public NetLog::EventParameters {
[email protected]2612834232010-05-14 21:52:3622 public:
23 URLRequestStartEventParameters(const GURL& url,
24 const std::string& method,
[email protected]0c952052010-07-13 18:01:5025 int load_flags,
[email protected]4cc647d2010-12-17 22:46:4126 RequestPriority priority);
[email protected]2612834232010-05-14 21:52:3627
28 const GURL& url() const {
29 return url_;
30 }
31
[email protected]e25e9552010-07-16 08:25:4132 int load_flags() const {
33 return load_flags_;
34 }
35
[email protected]f2cbbc82011-11-16 01:10:2936 virtual base::Value* ToValue() const OVERRIDE;
[email protected]2612834232010-05-14 21:52:3637
[email protected]a9813302012-04-28 09:29:2838 protected:
39 virtual ~URLRequestStartEventParameters();
40
[email protected]2612834232010-05-14 21:52:3641 private:
42 const GURL url_;
43 const std::string method_;
44 const int load_flags_;
[email protected]4cc647d2010-12-17 22:46:4145 const RequestPriority priority_;
[email protected]0c952052010-07-13 18:01:5046
47 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters);
[email protected]2612834232010-05-14 21:52:3648};
49
[email protected]4cc647d2010-12-17 22:46:4150} // namespace net
51
[email protected]2612834232010-05-14 21:52:3652#endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_