OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class Value; | 19 class Value; |
20 } | 20 } |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 class NetLogCaptureMode; | 24 class NetLogCaptureMode; |
25 | 25 |
| 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, |
| 30 NetLogCaptureMode /* capture_mode */); |
| 31 |
26 // Returns a Value containing NetLog parameters for starting a URLRequest. | 32 // Returns a Value containing NetLog parameters for starting a URLRequest. |
27 NET_EXPORT std::unique_ptr<base::Value> NetLogURLRequestStartCallback( | 33 NET_EXPORT std::unique_ptr<base::Value> NetLogURLRequestStartCallback( |
28 const GURL* url, | 34 const GURL* url, |
29 const std::string* method, | 35 const std::string* method, |
30 int load_flags, | 36 int load_flags, |
31 RequestPriority priority, | |
32 int64_t upload_id, | 37 int64_t upload_id, |
33 NetLogCaptureMode /* capture_mode */); | 38 NetLogCaptureMode /* capture_mode */); |
34 | 39 |
35 } // namespace net | 40 } // namespace net |
36 | 41 |
37 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ | 42 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ |
OLD | NEW |