Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: net/base/file_stream_net_log_parameters.cc

Issue 9288084: Added Net logging to FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed copyright issue. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/file_stream_net_log_parameters.h ('k') | net/base/file_stream_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3a8c42fefab2d9bce3d98bd49aa18271512c667b
--- /dev/null
+++ b/net/base/file_stream_net_log_parameters.cc
@@ -0,0 +1,26 @@
+// 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_);
+
+ return dict;
+}
+
+} // namespace net
« no previous file with comments | « net/base/file_stream_net_log_parameters.h ('k') | net/base/file_stream_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698