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

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, 7 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
vakh (use Gerrit instead) 2017/05/31 23:53:08 nit: Safe Browsing
vakh (use Gerrit instead) 2017/05/31 23:54:30 nit nit: SafeBrowsing (here and elsewhere)
yzshen1 2017/06/01 17:45:03 Done.
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 CreateCheckerAndCheck(
20 SafeBrowsingUrlChecker& request,
21 url.mojom.Url url,
22 int32 load_flags,
23 content.mojom.ResourceType resource_type) => (bool result);
24 };
25
26 interface SafeBrowsingUrlChecker {
27 CheckUrl(url.mojom.Url url) => (bool result);
28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698