summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/provisional_load_details.cc
blob: dedf3e8e7dae34452fe6c44598e9556114d5245f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.


#include "chrome/browser/tab_contents/provisional_load_details.h"

#include "chrome/browser/ssl/ssl_manager.h"

ProvisionalLoadDetails::ProvisionalLoadDetails(bool is_main_frame,
                                               bool is_in_page_navigation,
                                               const GURL& url,
                                               const std::string& security_info,
                                               bool is_content_filtered,
                                               long long frame_id)
      : error_code_(net::OK),
        transition_type_(PageTransition::LINK),
        url_(url),
        is_main_frame_(is_main_frame),
        is_in_page_navigation_(is_in_page_navigation),
        ssl_cert_id_(0),
        ssl_cert_status_(0),
        ssl_security_bits_(-1),
        ssl_connection_status_(0),
        is_content_filtered_(is_content_filtered),
        frame_id_(frame_id) {
  SSLManager::DeserializeSecurityInfo(security_info,
                                      &ssl_cert_id_,
                                      &ssl_cert_status_,
                                      &ssl_security_bits_,
                                      &ssl_connection_status_);
}