| 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 CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Used to query the HistoryService to see if the URL is in history. For UMA. | 64 // Used to query the HistoryService to see if the URL is in history. For UMA. |
| 65 void OnGotHistoryCount(HistoryService::Handle handle, | 65 void OnGotHistoryCount(HistoryService::Handle handle, |
| 66 bool success, | 66 bool success, |
| 67 int num_visits, | 67 int num_visits, |
| 68 base::Time first_visit); | 68 base::Time first_visit); |
| 69 | 69 |
| 70 base::Callback<void(bool)> callback_; | 70 base::Callback<void(bool)> callback_; |
| 71 | 71 |
| 72 content::WebContents* web_contents_; | 72 content::WebContents* web_contents_; |
| 73 int cert_error_; | 73 int cert_error_; |
| 74 base::TimeTicks display_start_time_; | |
| 75 net::SSLInfo ssl_info_; | 74 net::SSLInfo ssl_info_; |
| 76 GURL request_url_; | 75 GURL request_url_; |
| 77 // Could the user successfully override the error? | 76 // Could the user successfully override the error? |
| 78 bool overridable_; | 77 bool overridable_; |
| 79 // Has the site requested strict enforcement of certificate errors? | 78 // Has the site requested strict enforcement of certificate errors? |
| 80 bool strict_enforcement_; | 79 bool strict_enforcement_; |
| 81 content::InterstitialPage* interstitial_page_; // Owns us. | 80 content::InterstitialPage* interstitial_page_; // Owns us. |
| 82 // Is the hostname for an internal network? | 81 // Is the hostname for an internal network? |
| 83 bool internal_; | 82 bool internal_; |
| 84 // How many times is this same URL in history? | 83 // How many times is this same URL in history? |
| 85 int num_visits_; | 84 int num_visits_; |
| 86 // Used for getting num_visits_. | 85 // Used for getting num_visits_. |
| 87 CancelableRequestConsumer request_consumer_; | 86 CancelableRequestConsumer request_consumer_; |
| 88 | 87 |
| 89 // For the FieldTrial: this contains the name of the condition. | 88 // For the FieldTrial: this contains the name of the condition. |
| 90 std::string trialCondition_; | 89 std::string trialCondition_; |
| 91 | 90 |
| 92 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); | 91 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 94 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| OLD | NEW |