blob: 12bd1f1d167ee05a674a1136e93656a772ef55b5 [file] [log] [blame]
[email protected]2612834232010-05-14 21:52:361// 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_
[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"
13#include "net/base/net_log.h"
[email protected]0c952052010-07-13 18:01:5014#include "net/base/request_priority.h"
[email protected]2612834232010-05-14 21:52:3615
16// Holds the parameters to emit to the NetLog when starting a URLRequest.
17class URLRequestStartEventParameters : public net::NetLog::EventParameters {
18 public:
19 URLRequestStartEventParameters(const GURL& url,
20 const std::string& method,
[email protected]0c952052010-07-13 18:01:5021 int load_flags,
22 net::RequestPriority priority);
[email protected]2612834232010-05-14 21:52:3623
24 const GURL& url() const {
25 return url_;
26 }
27
[email protected]e25e9552010-07-16 08:25:4128 int load_flags() const {
29 return load_flags_;
30 }
31
[email protected]2612834232010-05-14 21:52:3632 virtual Value* ToValue() const;
33
34 private:
35 const GURL url_;
36 const std::string method_;
37 const int load_flags_;
[email protected]0c952052010-07-13 18:01:5038 const net::RequestPriority priority_;
39
40 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters);
[email protected]2612834232010-05-14 21:52:3641};
42
43#endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_