OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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/socket/socket_error_params.h" | |
6 | |
7 #include "base/values.h" | |
8 | |
9 namespace net { | |
10 | |
11 SocketErrorParams::SocketErrorParams(int net_error, int os_error) | |
12 : net_error_(net_error), | |
13 os_error_(os_error) { | |
14 } | |
15 | |
16 Value* SocketErrorParams::ToValue() const { | |
17 DictionaryValue* dict = new DictionaryValue(); | |
18 dict->SetInteger("net_error", net_error_); | |
19 dict->SetInteger("os_error", os_error_); | |
20 return dict; | |
21 } | |
22 | |
23 SocketErrorParams::~SocketErrorParams() {} | |
24 | |
25 } // namespace net | |
OLD | NEW |