Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: net/url_request/url_request_netlog_params.h

Issue 2579933002: Add logging for ResourceScheduler events. (Closed)
Patch Set: DCHECK to make sure that all async starts have defined triggers. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_netlog_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_netlog_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698