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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // 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. |
112 // Called on the UI thread. | 112 // Called on the UI thread. |
113 void MalwareFeatureExtractionDone( | 113 void MalwareFeatureExtractionDone( |
114 bool success, scoped_ptr<ClientMalwareRequest> request); | 114 bool success, scoped_ptr<ClientMalwareRequest> request); |
115 | 115 |
116 // Update the entries in browse_info_->ips map. | 116 // Update the entries in browse_info_->ips map. |
117 void UpdateIPUrlMap(const std::string& ip, | 117 void UpdateIPUrlMap(const std::string& ip, |
118 const std::string& url, | 118 const std::string& url, |
119 const std::string& method, | 119 const std::string& method, |
120 const std::string& referrer, | 120 const std::string& referrer, |
121 const content::ResourceType::Type resource_type); | 121 const content::ResourceType resource_type); |
122 | 122 |
123 // From NotificationObserver. Called when a notification comes in. This | 123 // From NotificationObserver. Called when a notification comes in. This |
124 // method is called in the UI thread. | 124 // method is called in the UI thread. |
125 virtual void Observe(int type, | 125 virtual void Observe(int type, |
126 const content::NotificationSource& source, | 126 const content::NotificationSource& source, |
127 const content::NotificationDetails& details) OVERRIDE; | 127 const content::NotificationDetails& details) OVERRIDE; |
128 | 128 |
129 // Inherited from WebContentsObserver. This is called once the page is | 129 // Inherited from WebContentsObserver. This is called once the page is |
130 // done loading. | 130 // done loading. |
131 virtual void DidStopLoading(content::RenderViewHost* rvh) OVERRIDE; | 131 virtual void DidStopLoading(content::RenderViewHost* rvh) OVERRIDE; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // as well as the UnsafeResource. | 178 // as well as the UnsafeResource. |
179 int unsafe_unique_page_id_; | 179 int unsafe_unique_page_id_; |
180 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; | 180 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); | 182 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); |
183 }; | 183 }; |
184 | 184 |
185 } // namespace safe_browsing | 185 } // namespace safe_browsing |
186 | 186 |
187 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 187 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
OLD | NEW |