Chromium Code Reviews| Index: net/base/file_stream_net_log_parameters.h |
| 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 0000000000000000000000000000000000000000..baa55f7cfdcf19af2d8300f86895a931c2903642 |
| --- /dev/null |
| +++ b/net/base/file_stream_net_log_parameters.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright (c) 2011 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 error statistics gathering. |
|
mmenke
2012/01/30 22:38:39
This comment is incorrect, since we don't gather a
ahendrickson
2012/01/31 20:12:40
Fixed.
|
| + |
| +#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_log.h" |
| + |
| +namespace net { |
| + |
| +// NetLog parameters when a FileStream has an error. |
| +class FileStreamErrorParameters : public net::NetLog::EventParameters { |
|
rvargas (doing something else)
2012/01/30 23:11:38
shouldn't the file be named file_stream_error_para
ahendrickson
2012/01/31 20:12:40
This is the pattern used elsewhere -- this file co
|
| + public: |
| + FileStreamErrorParameters(const std::string& operation, |
| + int system_error_code); |
| + virtual base::Value* ToValue() const OVERRIDE; |
| + |
| + private: |
| + std::string operation_; |
| + int system_error_code_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(FileStreamErrorParameters); |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_ |