| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_UNSAFE_RESOURCE_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_UNSAFE_RESOURCE_H_ |
| 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_UNSAFE_RESOURCE_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_UNSAFE_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 GURL original_url; | 60 GURL original_url; |
| 61 std::vector<GURL> redirect_urls; | 61 std::vector<GURL> redirect_urls; |
| 62 bool is_subresource; | 62 bool is_subresource; |
| 63 bool is_subframe; | 63 bool is_subframe; |
| 64 safe_browsing::SBThreatType threat_type; | 64 safe_browsing::SBThreatType threat_type; |
| 65 safe_browsing::ThreatMetadata threat_metadata; | 65 safe_browsing::ThreatMetadata threat_metadata; |
| 66 UrlCheckCallback callback; // This is called back on |callback_thread|. | 66 UrlCheckCallback callback; // This is called back on |callback_thread|. |
| 67 scoped_refptr<base::SingleThreadTaskRunner> callback_thread; | 67 scoped_refptr<base::SingleThreadTaskRunner> callback_thread; |
| 68 base::Callback<content::WebContents*(void)> web_contents_getter; | 68 base::Callback<content::WebContents*(void)> web_contents_getter; |
| 69 safe_browsing::ThreatSource threat_source; | 69 safe_browsing::ThreatSource threat_source; |
| 70 // |token| field is only set if |threat_type| is |
| 71 // SB_THREAT_TYPE_PASSWORD_PROTECTION_PHISHING_URL |
| 72 std::string token; |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 } // security_interstitials | 75 } // security_interstitials |
| 73 | 76 |
| 74 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_UNSAFE_RESOURCE_H_ | 77 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_UNSAFE_RESOURCE_H_ |
| OLD | NEW |