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 #include "net/base/file_stream_net_log_parameters.h"
7 #include "base/values.h"
11 base::Value* NetLogFileStreamErrorCallback(
12 FileErrorSource source,
15 NetLog::LogLevel /* log_level */) {
16 base::DictionaryValue* dict = new base::DictionaryValue();
18 dict->SetString("operation", GetFileErrorSourceName(source));
19 dict->SetInteger("os_error", os_error);
20 dict->SetInteger("net_error", net_error);