blob: 8b275b9e816aea1e0b45d98ac848ffb5df785eb4 [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
[email protected]4cc647d2010-12-17 22:46:4116namespace net {
17
18// Holds the parameters to emit to the NetLog when starting a URLRequest.
19class URLRequestStartEventParameters : public NetLog::EventParameters {
[email protected]2612834232010-05-14 21:52:3620 public:
21 URLRequestStartEventParameters(const GURL& url,
22 const std::string& method,
[email protected]0c952052010-07-13 18:01:5023 int load_flags,
[email protected]4cc647d2010-12-17 22:46:4124 RequestPriority priority);
[email protected]2612834232010-05-14 21:52:3625
26 const GURL& url() const {
27 return url_;
28 }
29
[email protected]e25e9552010-07-16 08:25:4130 int load_flags() const {
31 return load_flags_;
32 }
33
[email protected]2612834232010-05-14 21:52:3634 virtual Value* ToValue() const;
35
36 private:
37 const GURL url_;
38 const std::string method_;
39 const int load_flags_;
[email protected]4cc647d2010-12-17 22:46:4140 const RequestPriority priority_;
[email protected]0c952052010-07-13 18:01:5041
42 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters);
[email protected]2612834232010-05-14 21:52:3643};
44
[email protected]4cc647d2010-12-17 22:46:4145} // namespace net
46
[email protected]2612834232010-05-14 21:52:3647#endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_