| 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..a797fce75558e167a591cfca6159ffe4adebb4f9
|
| --- /dev/null
|
| +++ b/net/base/file_stream_net_log_parameters.cc
|
| @@ -0,0 +1,26 @@
|
| +// 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.
|
| +
|
| +#include "net/base/file_stream_net_log_parameters.h"
|
| +
|
| +#include "base/values.h"
|
| +
|
| +namespace net {
|
| +
|
| +FileStreamErrorParameters::FileStreamErrorParameters(
|
| + const std::string& operation,
|
| + int system_error_code)
|
| + : operation_(operation), system_error_code_(system_error_code) {
|
| +}
|
| +
|
| +Value* FileStreamErrorParameters::ToValue() const {
|
| + DictionaryValue* dict = new DictionaryValue();
|
| +
|
| + dict->SetString("operation", operation_);
|
| + dict->SetInteger("system_error_code", system_error_code_);
|
| +
|
| + return dict;
|
| +}
|
| +
|
| +} // namespace net
|
|
|