OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 5 |
6 #include "content/browser/tab_contents/provisional_load_details.h" | 6 #include "content/browser/tab_contents/provisional_load_details.h" |
7 | 7 |
8 #include "chrome/browser/ssl/ssl_manager.h" | 8 #include "content/browser/ssl/ssl_manager.h" |
9 | 9 |
10 ProvisionalLoadDetails::ProvisionalLoadDetails(bool is_main_frame, | 10 ProvisionalLoadDetails::ProvisionalLoadDetails(bool is_main_frame, |
11 bool is_in_page_navigation, | 11 bool is_in_page_navigation, |
12 const GURL& url, | 12 const GURL& url, |
13 const std::string& security_info, | 13 const std::string& security_info, |
14 bool is_error_page, | 14 bool is_error_page, |
15 int64 frame_id) | 15 int64 frame_id) |
16 : error_code_(net::OK), | 16 : error_code_(net::OK), |
17 transition_type_(PageTransition::LINK), | 17 transition_type_(PageTransition::LINK), |
18 url_(url), | 18 url_(url), |
19 is_main_frame_(is_main_frame), | 19 is_main_frame_(is_main_frame), |
20 is_in_page_navigation_(is_in_page_navigation), | 20 is_in_page_navigation_(is_in_page_navigation), |
21 ssl_cert_id_(0), | 21 ssl_cert_id_(0), |
22 ssl_cert_status_(0), | 22 ssl_cert_status_(0), |
23 ssl_security_bits_(-1), | 23 ssl_security_bits_(-1), |
24 ssl_connection_status_(0), | 24 ssl_connection_status_(0), |
25 is_error_page_(is_error_page), | 25 is_error_page_(is_error_page), |
26 frame_id_(frame_id) { | 26 frame_id_(frame_id) { |
27 SSLManager::DeserializeSecurityInfo(security_info, | 27 SSLManager::DeserializeSecurityInfo(security_info, |
28 &ssl_cert_id_, | 28 &ssl_cert_id_, |
29 &ssl_cert_status_, | 29 &ssl_cert_status_, |
30 &ssl_security_bits_, | 30 &ssl_security_bits_, |
31 &ssl_connection_status_); | 31 &ssl_connection_status_); |
32 } | 32 } |
OLD | NEW |