Index: net/base/file_stream_net_log_parameters.cc |
diff --git a/net/base/file_stream_net_log_parameters.cc b/net/base/file_stream_net_log_parameters.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7a82424494f023f069c3c2a8d1db17b6c88b712e |
--- /dev/null |
+++ b/net/base/file_stream_net_log_parameters.cc |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "net/base/file_stream_net_log_parameters.h" |
+ |
+#include "base/values.h" |
+ |
+namespace net { |
+ |
+FileStreamErrorParameters::FileStreamErrorParameters( |
+ const std::string& operation, int os_error, net::Error net_error) |
+ : operation_(operation), os_error_(os_error), net_error_(net_error) { |
+} |
+ |
+Value* FileStreamErrorParameters::ToValue() const { |
+ DictionaryValue* dict = new DictionaryValue(); |
+ |
+ dict->SetString("operation", operation_); |
+ dict->SetInteger("os_error", os_error_); |
+ dict->SetInteger("net_error", net_error_); |
+ dict->SetString("net_error_name", net::ErrorToString(net_error_)); |
mmenke
2012/02/01 16:25:52
Not needed. about:net-internals automatically loo
ahendrickson
2012/02/01 18:38:32
Removed.
|
+ |
+ return dict; |
+} |
+ |
+} // namespace net |