blob: 2d672f5767cfa009774682150bd6abbde173ba62 [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_
7
Avi Drissman13fc8932015-12-20 04:40:468#include <stdint.h>
9
mikecironef22f9812016-10-04 03:40:1910#include <memory>
[email protected]2612834232010-05-14 21:52:3611#include <string>
12
[email protected]172da1b2011-08-12 15:52:2613#include "net/base/net_export.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]3abacd62012-06-10 20:20:3216class GURL;
17
18namespace base {
19class Value;
20}
21
[email protected]4cc647d2010-12-17 22:46:4122namespace net {
23
mikecironef22f9812016-10-04 03:40:1924class NetLogCaptureMode;
25
rdsmith37a0dde2017-01-04 00:12:0726// Returns a Value containing NetLog parameters for constructing a URLRequest.
27NET_EXPORT std::unique_ptr<base::Value> NetLogURLRequestConstructorCallback(
28 const GURL* url,
29 RequestPriority priority,
Thomas Anderson1a03bbe2018-03-02 19:05:4730 NetLogCaptureMode /* capture_mode */);
rdsmith37a0dde2017-01-04 00:12:0731
[email protected]3abacd62012-06-10 20:20:3232// Returns a Value containing NetLog parameters for starting a URLRequest.
danakj8522a25b2016-04-16 00:17:3633NET_EXPORT std::unique_ptr<base::Value> NetLogURLRequestStartCallback(
[email protected]3abacd62012-06-10 20:20:3234 const GURL* url,
35 const std::string* method,
36 int load_flags,
Avi Drissman13fc8932015-12-20 04:40:4637 int64_t upload_id,
Thomas Anderson1a03bbe2018-03-02 19:05:4738 NetLogCaptureMode /* capture_mode */);
[email protected]2612834232010-05-14 21:52:3639
[email protected]4cc647d2010-12-17 22:46:4140} // namespace net
41
[email protected]2612834232010-05-14 21:52:3642#endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_