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

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

Issue 1135373002: Updated NetLog::ParametersCallback & all related calbacks returning value as scoped_ptr<base::Value… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_job.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 <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/base/request_priority.h" 11 #include "net/base/request_priority.h"
12 #include "net/log/net_log.h" 12 #include "net/log/net_log.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace base { 16 namespace base {
17 class Value; 17 class Value;
18 } 18 }
19 19
20 namespace net { 20 namespace net {
21 21
22 // Returns a Value containing NetLog parameters for starting a URLRequest. 22 // Returns a Value containing NetLog parameters for starting a URLRequest.
23 NET_EXPORT base::Value* NetLogURLRequestStartCallback( 23 NET_EXPORT scoped_ptr<base::Value> NetLogURLRequestStartCallback(
24 const GURL* url, 24 const GURL* url,
25 const std::string* method, 25 const std::string* method,
26 int load_flags, 26 int load_flags,
27 RequestPriority priority, 27 RequestPriority priority,
28 int64 upload_id, 28 int64 upload_id,
29 NetLogCaptureMode /* capture_mode */); 29 NetLogCaptureMode /* capture_mode */);
30 30
31 // Attempts to extract the load flags from a Value created by the above 31 // Attempts to extract the load flags from a Value created by the above
32 // function. On success, sets |load_flags| accordingly and returns true. 32 // function. On success, sets |load_flags| accordingly and returns true.
33 // On failure, sets |load_flags| to 0. 33 // On failure, sets |load_flags| to 0.
34 NET_EXPORT bool StartEventLoadFlagsFromEventParams( 34 NET_EXPORT bool StartEventLoadFlagsFromEventParams(
35 const base::Value* event_params, 35 const base::Value* event_params,
36 int* load_flags); 36 int* load_flags);
37 37
38 } // namespace net 38 } // namespace net
39 39
40 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ 40 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.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