| 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 #include "net/url_request/url_request_netlog_params.h" | 5 #include "net/url_request/url_request_netlog_params.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 base::Value* NetLogURLRequestStartCallback(const GURL* url, | 13 base::Value* NetLogURLRequestStartCallback(const GURL* url, |
| 14 const std::string* method, | 14 const std::string* method, |
| 15 int load_flags, | 15 int load_flags, |
| 16 RequestPriority priority, | 16 RequestPriority priority, |
| 17 int64 upload_id, | 17 int64 upload_id, |
| 18 NetLog::LogLevel /* log_level */) { | 18 NetLog::LogLevel /* log_level */) { |
| 19 base::DictionaryValue* dict = new base::DictionaryValue(); | 19 base::DictionaryValue* dict = new base::DictionaryValue(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 const base::DictionaryValue* dict; | 31 const base::DictionaryValue* dict; |
| 32 if (!event_params->GetAsDictionary(&dict) || | 32 if (!event_params->GetAsDictionary(&dict) || |
| 33 !dict->GetInteger("load_flags", load_flags)) { | 33 !dict->GetInteger("load_flags", load_flags)) { |
| 34 *load_flags = 0; | 34 *load_flags = 0; |
| 35 return false; | 35 return false; |
| 36 } | 36 } |
| 37 return true; | 37 return true; |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace net | 40 } // namespace net |
| OLD | NEW |