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 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" | 5 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" |
6 | 6 |
7 #include "net/http/http_transaction_factory.h" | |
8 #include "net/ssl/ssl_cert_request_info.h" | 7 #include "net/ssl/ssl_cert_request_info.h" |
9 #include "net/url_request/url_request.h" | 8 #include "net/url_request/url_request.h" |
10 #include "net/url_request/url_request_context.h" | |
11 | 9 |
12 SSLClientAuthRequestorMock::SSLClientAuthRequestorMock( | 10 SSLClientAuthRequestorMock::SSLClientAuthRequestorMock( |
13 net::URLRequest* request, | 11 net::URLRequest* request, |
14 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info) | 12 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info) |
15 : cert_request_info_(cert_request_info), | 13 : cert_request_info_(cert_request_info) { |
16 http_network_session_(request->context() | |
17 ->http_transaction_factory() | |
18 ->GetSession()) { | |
19 } | 14 } |
20 | 15 |
21 SSLClientAuthRequestorMock::~SSLClientAuthRequestorMock() {} | 16 SSLClientAuthRequestorMock::~SSLClientAuthRequestorMock() {} |
OLD | NEW |