Update V8 to version 4.6.55.
[chromium-blink-merge.git] / net / url_request / url_request_netlog_params.h
blob47fc97a3932ceca866839e78e2fbcacb058d408d
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
3 // found in the LICENSE file.
5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
8 #include <string>
10 #include "net/base/net_export.h"
11 #include "net/base/request_priority.h"
12 #include "net/log/net_log.h"
14 class GURL;
16 namespace base {
17 class Value;
20 namespace net {
22 // Returns a Value containing NetLog parameters for starting a URLRequest.
23 NET_EXPORT scoped_ptr<base::Value> NetLogURLRequestStartCallback(
24 const GURL* url,
25 const std::string* method,
26 int load_flags,
27 RequestPriority priority,
28 int64 upload_id,
29 NetLogCaptureMode /* capture_mode */);
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.
33 // On failure, sets |load_flags| to 0.
34 NET_EXPORT bool StartEventLoadFlagsFromEventParams(
35 const base::Value* event_params,
36 int* load_flags);
38 } // namespace net
40 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_