summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream_net_log_parameters.h
diff options
context:
space:
mode:
authorahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-02 18:49:43 +0000
committerahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-02 18:49:43 +0000
commit1034299e794d0ba846309c43046eb8bb8a740e27 (patch)
tree9844e4cfd15857aa0d772432f8cd01983bc1df56 /net/base/file_stream_net_log_parameters.h
parente5eed6d9790191c9ce4705167d1bb1166d521699 (diff)
downloadchromium_src-1034299e794d0ba846309c43046eb8bb8a740e27.zip
chromium_src-1034299e794d0ba846309c43046eb8bb8a740e27.tar.gz
chromium_src-1034299e794d0ba846309c43046eb8bb8a740e27.tar.bz2
Added Net logging to FileStream.
The net logging doesn't currently do anything, but is ready if some system wants to pass it in. This is the first of 4 CLs that will enable net logging for downloads. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/9288084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/file_stream_net_log_parameters.h')
-rw-r--r--net/base/file_stream_net_log_parameters.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/net/base/file_stream_net_log_parameters.h b/net/base/file_stream_net_log_parameters.h
new file mode 100644
index 0000000..92689ab
--- /dev/null
+++ b/net/base/file_stream_net_log_parameters.h
@@ -0,0 +1,36 @@
+// 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.
+
+// File stream error reporting.
+
+#ifndef NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_
+#define NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_
+#pragma once
+
+#include <string>
+
+#include "net/base/net_errors.h"
+#include "net/base/net_log.h"
+
+namespace net {
+
+// NetLog parameters when a FileStream has an error.
+class FileStreamErrorParameters : public net::NetLog::EventParameters {
+ public:
+ FileStreamErrorParameters(const std::string& operation,
+ int os_error,
+ net::Error net_error);
+ virtual base::Value* ToValue() const OVERRIDE;
+
+ private:
+ std::string operation_;
+ int os_error_;
+ net::Error net_error_;
+
+ DISALLOW_COPY_AND_ASSIGN(FileStreamErrorParameters);
+};
+
+} // namespace net
+
+#endif // NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_