Index: chrome/browser/safe_browsing/off_domain_inclusion_detector.h |
diff --git a/chrome/browser/safe_browsing/off_domain_inclusion_detector.h b/chrome/browser/safe_browsing/off_domain_inclusion_detector.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2d5e28102a3b2ae677fe88b5adfba91e754851f3 |
--- /dev/null |
+++ b/chrome/browser/safe_browsing/off_domain_inclusion_detector.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_SAFE_BROWSING_OFF_DOMAIN_INCLUSION_DETECTOR_H_ |
+#define CHROME_BROWSER_SAFE_BROWSING_OFF_DOMAIN_INCLUSION_DETECTOR_H_ |
+ |
+#include "base/macros.h" |
+#include "content/public/common/resource_type.h" |
+ |
+namespace net { |
+class URLRequest; |
+} |
+ |
+namespace safe_browsing { |
+ |
+// Observes network requests and reports suspicious activity. |
+class OffDomainInclusionDetector { |
+ public: |
+ OffDomainInclusionDetector() {} |
+ |
+ void OnResourceRequest(const net::URLRequest* request, |
+ content::ResourceType resource_type); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(OffDomainInclusionDetector); |
+}; |
+ |
+} // namespace safe_browsing |
+ |
+#endif // CHROME_BROWSER_SAFE_BROWSING_OFF_DOMAIN_INCLUSION_DETECTOR_H_ |