[email protected] | a981330 | 2012-04-28 09:29:28 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 261283423 | 2010-05-14 21:52:36 | [diff] [blame] | 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_ | ||||
7 | |||||
Avi Drissman | 13fc893 | 2015-12-20 04:40:46 | [diff] [blame] | 8 | #include <stdint.h> |
9 | |||||
mikecirone | f22f981 | 2016-10-04 03:40:19 | [diff] [blame] | 10 | #include <memory> |
[email protected] | 261283423 | 2010-05-14 21:52:36 | [diff] [blame] | 11 | #include <string> |
12 | |||||
[email protected] | 172da1b | 2011-08-12 15:52:26 | [diff] [blame] | 13 | #include "net/base/net_export.h" |
[email protected] | 0c95205 | 2010-07-13 18:01:50 | [diff] [blame] | 14 | #include "net/base/request_priority.h" |
[email protected] | 261283423 | 2010-05-14 21:52:36 | [diff] [blame] | 15 | |
[email protected] | 3abacd6 | 2012-06-10 20:20:32 | [diff] [blame] | 16 | class GURL; |
17 | |||||
18 | namespace base { | ||||
19 | class Value; | ||||
20 | } | ||||
21 | |||||
[email protected] | 4cc647d | 2010-12-17 22:46:41 | [diff] [blame] | 22 | namespace net { |
23 | |||||
mikecirone | f22f981 | 2016-10-04 03:40:19 | [diff] [blame] | 24 | class NetLogCaptureMode; |
25 | |||||
rdsmith | 37a0dde | 2017-01-04 00:12:07 | [diff] [blame] | 26 | // Returns a Value containing NetLog parameters for constructing a URLRequest. |
27 | NET_EXPORT std::unique_ptr<base::Value> NetLogURLRequestConstructorCallback( | ||||
28 | const GURL* url, | ||||
29 | RequestPriority priority, | ||||
Thomas Anderson | 1a03bbe | 2018-03-02 19:05:47 | [diff] [blame] | 30 | NetLogCaptureMode /* capture_mode */); |
rdsmith | 37a0dde | 2017-01-04 00:12:07 | [diff] [blame] | 31 | |
[email protected] | 3abacd6 | 2012-06-10 20:20:32 | [diff] [blame] | 32 | // Returns a Value containing NetLog parameters for starting a URLRequest. |
danakj | 8522a25b | 2016-04-16 00:17:36 | [diff] [blame] | 33 | NET_EXPORT std::unique_ptr<base::Value> NetLogURLRequestStartCallback( |
[email protected] | 3abacd6 | 2012-06-10 20:20:32 | [diff] [blame] | 34 | const GURL* url, |
35 | const std::string* method, | ||||
36 | int load_flags, | ||||
Avi Drissman | 13fc893 | 2015-12-20 04:40:46 | [diff] [blame] | 37 | int64_t upload_id, |
Thomas Anderson | 1a03bbe | 2018-03-02 19:05:47 | [diff] [blame] | 38 | NetLogCaptureMode /* capture_mode */); |
[email protected] | 261283423 | 2010-05-14 21:52:36 | [diff] [blame] | 39 | |
[email protected] | 4cc647d | 2010-12-17 22:46:41 | [diff] [blame] | 40 | } // namespace net |
41 | |||||
[email protected] | 261283423 | 2010-05-14 21:52:36 | [diff] [blame] | 42 | #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |