OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef NET_SOCKET_SSL_ERROR_PARAMS_H_ | 5 #ifndef NET_SOCKET_SSL_ERROR_PARAMS_H_ |
6 #define NET_SOCKET_SSL_ERROR_PARAMS_H_ | 6 #define NET_SOCKET_SSL_ERROR_PARAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/base/net_log.h" | 9 #include "net/base/net_log.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 // Extra parameters to attach to the NetLog when we receive an SSL error. | 13 // Creates NetLog callback for when we receive an SSL error. |
14 class SSLErrorParams : public NetLog::EventParameters { | 14 NetLog::ParametersCallback CreateNetLogSSLErrorCallback(int net_error, |
15 public: | 15 int ssl_lib_error); |
16 SSLErrorParams(int net_error, int ssl_lib_error); | |
17 | |
18 virtual base::Value* ToValue() const OVERRIDE; | |
19 | |
20 protected: | |
21 virtual ~SSLErrorParams(); | |
22 | |
23 private: | |
24 const int net_error_; | |
25 const int ssl_lib_error_; | |
26 }; | |
27 | 16 |
28 } // namespace net | 17 } // namespace net |
29 | 18 |
30 #endif // NET_SOCKET_SSL_ERROR_PARAMS_H_ | 19 #endif // NET_SOCKET_SSL_ERROR_PARAMS_H_ |
OLD | NEW |