OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/base/file_stream_net_log_parameters.h" | |
6 | |
7 #include "base/values.h" | |
8 | |
9 namespace net { | |
10 | |
11 FileStreamErrorParameters::FileStreamErrorParameters( | |
12 const std::string& operation, | |
13 int system_error_code) | |
14 : operation_(operation), system_error_code_(system_error_code) { | |
15 } | |
16 | |
17 Value* FileStreamErrorParameters::ToValue() const { | |
18 DictionaryValue* dict = new DictionaryValue(); | |
19 | |
20 dict->SetString("operation", operation_); | |
21 dict->SetInteger("system_error_code", system_error_code_); | |
mmenke
2012/01/30 22:38:39
This is called "os_error" in other similar cases.
ahendrickson
2012/01/31 20:12:40
Done.
| |
22 | |
23 return dict; | |
24 } | |
25 | |
26 } // namespace net | |
OLD | NEW |