OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_OFF_DOMAIN_INCLUSION_DETECTOR_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_OFF_DOMAIN_INCLUSION_DETECTOR_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/common/resource_type.h" |
| 10 |
| 11 namespace net { |
| 12 class URLRequest; |
| 13 } |
| 14 |
| 15 namespace safe_browsing { |
| 16 |
| 17 // Observes network requests and reports suspicious activity. |
| 18 class OffDomainInclusionDetector { |
| 19 public: |
| 20 OffDomainInclusionDetector() {} |
| 21 |
| 22 void OnResourceRequest(const net::URLRequest* request, |
| 23 content::ResourceType resource_type); |
| 24 |
| 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(OffDomainInclusionDetector); |
| 27 }; |
| 28 |
| 29 } // namespace safe_browsing |
| 30 |
| 31 #endif // CHROME_BROWSER_SAFE_BROWSING_OFF_DOMAIN_INCLUSION_DETECTOR_H_ |
OLD | NEW |