Revert 205649 "Adding wittman who can submit this change. Either..."
[chromium-blink-merge.git] / net / base / file_stream_net_log_parameters.cc
blobc268eccbcb5553bf940726835ed25924d41c0e12
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"
9 namespace net {
11 base::Value* NetLogFileStreamErrorCallback(
12 FileErrorSource source,
13 int os_error,
14 net::Error net_error,
15 NetLog::LogLevel /* log_level */) {
16 DictionaryValue* dict = new DictionaryValue();
18 dict->SetString("operation", GetFileErrorSourceName(source));
19 dict->SetInteger("os_error", os_error);
20 dict->SetInteger("net_error", net_error);
22 return dict;
25 } // namespace net