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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698