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