| 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/base/file_stream_net_log_parameters.h" | 5 #include "net/base/file_stream_net_log_parameters.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 base::Value* NetLogFileStreamErrorCallback( | 11 base::Value* NetLogFileStreamErrorCallback( |
| 12 FileErrorSource source, | 12 FileErrorSource source, |
| 13 int os_error, | 13 int os_error, |
| 14 net::Error net_error, | 14 net::Error net_error, |
| 15 NetLog::LogLevel /* log_level */) { | 15 NetLog::LogLevel /* log_level */) { |
| 16 DictionaryValue* dict = new DictionaryValue(); | 16 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 17 | 17 |
| 18 dict->SetString("operation", GetFileErrorSourceName(source)); | 18 dict->SetString("operation", GetFileErrorSourceName(source)); |
| 19 dict->SetInteger("os_error", os_error); | 19 dict->SetInteger("os_error", os_error); |
| 20 dict->SetInteger("net_error", net_error); | 20 dict->SetInteger("net_error", net_error); |
| 21 | 21 |
| 22 return dict; | 22 return dict; |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace net | 25 } // namespace net |
| OLD | NEW |