blob: 731e73952a93f48b6483d150da423f351daea994 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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) {
}
FileStreamErrorParameters::~FileStreamErrorParameters() {}
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
|