| 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 #ifndef CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // TODO(brettw) this mostly duplicates | 21 // TODO(brettw) this mostly duplicates |
| 22 // NavigationController::LoadCommittedDetails, it would be nice to unify these | 22 // NavigationController::LoadCommittedDetails, it would be nice to unify these |
| 23 // somehow. | 23 // somehow. |
| 24 class ProvisionalLoadDetails { | 24 class ProvisionalLoadDetails { |
| 25 public: | 25 public: |
| 26 ProvisionalLoadDetails(bool main_frame, | 26 ProvisionalLoadDetails(bool main_frame, |
| 27 bool in_page_navigation, | 27 bool in_page_navigation, |
| 28 const GURL& url, | 28 const GURL& url, |
| 29 const std::string& security_info, | 29 const std::string& security_info, |
| 30 bool is_filtered, | 30 bool is_filtered, |
| 31 bool is_error_page, |
| 31 int64 frame_id); | 32 int64 frame_id); |
| 32 virtual ~ProvisionalLoadDetails() { } | 33 virtual ~ProvisionalLoadDetails() { } |
| 33 | 34 |
| 34 void set_error_code(int error_code) { error_code_ = error_code; } | 35 void set_error_code(int error_code) { error_code_ = error_code; } |
| 35 int error_code() const { return error_code_; } | 36 int error_code() const { return error_code_; } |
| 36 | 37 |
| 37 void set_transition_type(PageTransition::Type transition_type) { | 38 void set_transition_type(PageTransition::Type transition_type) { |
| 38 transition_type_ = transition_type; | 39 transition_type_ = transition_type; |
| 39 } | 40 } |
| 40 PageTransition::Type transition_type() const { | 41 PageTransition::Type transition_type() const { |
| 41 return transition_type_; | 42 return transition_type_; |
| 42 } | 43 } |
| 43 | 44 |
| 44 const GURL& url() const { return url_; } | 45 const GURL& url() const { return url_; } |
| 45 | 46 |
| 46 bool main_frame() const { return is_main_frame_; } | 47 bool main_frame() const { return is_main_frame_; } |
| 47 | 48 |
| 48 bool in_page_navigation() const { return is_in_page_navigation_; } | 49 bool in_page_navigation() const { return is_in_page_navigation_; } |
| 49 | 50 |
| 50 int ssl_cert_id() const { return ssl_cert_id_; } | 51 int ssl_cert_id() const { return ssl_cert_id_; } |
| 51 | 52 |
| 52 int ssl_cert_status() const { return ssl_cert_status_; } | 53 int ssl_cert_status() const { return ssl_cert_status_; } |
| 53 | 54 |
| 54 int ssl_security_bits() const { return ssl_security_bits_; } | 55 int ssl_security_bits() const { return ssl_security_bits_; } |
| 55 | 56 |
| 56 int ssl_connection_status() const { return ssl_connection_status_; } | 57 int ssl_connection_status() const { return ssl_connection_status_; } |
| 57 | 58 |
| 58 bool is_content_filtered() const { return is_content_filtered_; } | 59 bool is_content_filtered() const { return is_content_filtered_; } |
| 59 | 60 |
| 61 bool is_error_page() const { return is_error_page_; } |
| 62 |
| 60 int64 frame_id() const { return frame_id_; } | 63 int64 frame_id() const { return frame_id_; } |
| 61 | 64 |
| 62 private: | 65 private: |
| 63 int error_code_; | 66 int error_code_; |
| 64 PageTransition::Type transition_type_; | 67 PageTransition::Type transition_type_; |
| 65 GURL url_; | 68 GURL url_; |
| 66 bool is_main_frame_; | 69 bool is_main_frame_; |
| 67 bool is_in_page_navigation_; | 70 bool is_in_page_navigation_; |
| 68 int ssl_cert_id_; | 71 int ssl_cert_id_; |
| 69 int ssl_cert_status_; | 72 int ssl_cert_status_; |
| 70 int ssl_security_bits_; | 73 int ssl_security_bits_; |
| 71 int ssl_connection_status_; | 74 int ssl_connection_status_; |
| 72 bool is_content_filtered_; | 75 bool is_content_filtered_; |
| 76 bool is_error_page_; |
| 73 int64 frame_id_; | 77 int64 frame_id_; |
| 74 | 78 |
| 75 DISALLOW_COPY_AND_ASSIGN(ProvisionalLoadDetails); | 79 DISALLOW_COPY_AND_ASSIGN(ProvisionalLoadDetails); |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 #endif // CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ | 82 #endif // CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ |
| OLD | NEW |