| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/socket/ssl_error_params.h" | 5 #include "net/socket/ssl_error_params.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 SSLErrorParams::SSLErrorParams(int net_error, int ssl_lib_error) | 11 SSLErrorParams::SSLErrorParams(int net_error, int ssl_lib_error) |
| 12 : net_error_(net_error), ssl_lib_error_(ssl_lib_error) {} | 12 : net_error_(net_error), |
| 13 | 13 ssl_lib_error_(ssl_lib_error) { |
| 14 SSLErrorParams::~SSLErrorParams() {} | 14 } |
| 15 | 15 |
| 16 Value* SSLErrorParams::ToValue() const { | 16 Value* SSLErrorParams::ToValue() const { |
| 17 DictionaryValue* dict = new DictionaryValue(); | 17 DictionaryValue* dict = new DictionaryValue(); |
| 18 dict->SetInteger("net_error", net_error_); | 18 dict->SetInteger("net_error", net_error_); |
| 19 if (ssl_lib_error_) | 19 if (ssl_lib_error_) |
| 20 dict->SetInteger("ssl_lib_error", ssl_lib_error_); | 20 dict->SetInteger("ssl_lib_error", ssl_lib_error_); |
| 21 return dict; | 21 return dict; |
| 22 } | 22 } |
| 23 | 23 |
| 24 SSLErrorParams::~SSLErrorParams() {} |
| 25 |
| 24 } // namespace net | 26 } // namespace net |
| OLD | NEW |