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

Side by Side Diff: chrome/common/safe_browsing.mojom

Issue 2900563002: Network service: Safe browsing check for sub-resources from renderer. (Closed)
Patch Set: . Created 3 years, 6 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 2017 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 module chrome.mojom;
6
7 import "content/public/common/resource_type.mojom";
8 import "url/mojo/url.mojom";
9
10 interface SafeBrowsing {
11 // Queries safe browsing whether |url| is safe to load, and creates a
12 // SafeBrowsingUrlChecker interface.
13 // This checker interface should be used (and only used) for subsequent checks
14 // of redirects, so that the server side could keep track of the redirect
15 // chain. Disconnecting the checker interface cancels on-going URL checks.
16 // Please note that in that case if the check started by this method hasn't
17 // completed yet, it will also be canceled and return true as if the URL is
18 // safe.
19 // The check and (subsequent checks performed using SafeBrowsingUrlChecker)
20 // checks against safe browsing's Malware, Phishing, and UwS blacklists.
21 CreateCheckerAndCheck(
22 int32 render_frame_id,
23 SafeBrowsingUrlChecker& request,
24 url.mojom.Url url,
vakh (use Gerrit instead) 2017/05/31 23:53:09 There are other SafeBrowsing checks that check non
yzshen1 2017/06/01 17:45:04 I feel that it should be fine to consider that lat
vakh (use Gerrit instead) 2017/06/01 17:57:47 Agree
25 int32 load_flags,
26 content.mojom.ResourceType resource_type) => (bool safe);
27 };
28
29 interface SafeBrowsingUrlChecker {
30 CheckUrl(url.mojom.Url url) => (bool safe);
31 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698