Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4362)

Unified Diff: chrome/browser/safe_browsing/off_domain_inclusion_detector.h

Issue 516663002: Introducing the OffDomainInclusionDetector to analyze resource requests for suspicious activity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Base analysis off of second-level domain only. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698