| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Callback that is called when the malware IP server ping back is | 95 // Callback that is called when the malware IP server ping back is |
| 96 // done. Display an interstitial if |is_malware| is true. | 96 // done. Display an interstitial if |is_malware| is true. |
| 97 // Otherwise, we do nothing. Called in UI thread. | 97 // Otherwise, we do nothing. Called in UI thread. |
| 98 void MaybeShowMalwareWarning(GURL original_url, GURL malware_url, | 98 void MaybeShowMalwareWarning(GURL original_url, GURL malware_url, |
| 99 bool is_malware); | 99 bool is_malware); |
| 100 | 100 |
| 101 // Callback that is called when the browser feature extractor is done. | 101 // Callback that is called when the browser feature extractor is done. |
| 102 // This method is responsible for deleting the request object. Called on | 102 // This method is responsible for deleting the request object. Called on |
| 103 // the UI thread. | 103 // the UI thread. |
| 104 void FeatureExtractionDone(bool success, ClientPhishingRequest* request); | 104 void FeatureExtractionDone(bool success, |
| 105 scoped_ptr<ClientPhishingRequest> request); |
| 105 | 106 |
| 106 // Start malware classification once the onload handler was called and | 107 // Start malware classification once the onload handler was called and |
| 107 // malware pre-classification checks are done and passed. | 108 // malware pre-classification checks are done and passed. |
| 108 void MaybeStartMalwareFeatureExtraction(); | 109 void MaybeStartMalwareFeatureExtraction(); |
| 109 | 110 |
| 110 // Function to be called when the browser malware feature extractor is done. | 111 // Function to be called when the browser malware feature extractor is done. |
| 111 // Called on the UI thread. | 112 // Called on the UI thread. |
| 112 void MalwareFeatureExtractionDone( | 113 void MalwareFeatureExtractionDone( |
| 113 bool success, scoped_ptr<ClientMalwareRequest> request); | 114 bool success, scoped_ptr<ClientMalwareRequest> request); |
| 114 | 115 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // as well as the UnsafeResource. | 178 // as well as the UnsafeResource. |
| 178 int unsafe_unique_page_id_; | 179 int unsafe_unique_page_id_; |
| 179 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; | 180 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); | 182 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace safe_browsing | 185 } // namespace safe_browsing |
| 185 | 186 |
| 186 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 187 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| OLD | NEW |