| OLD | NEW |
| (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 SafeBrowsing 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 SafeBrowsing's Malware, Phishing, and UwS blacklists. |
| 21 CreateCheckerAndCheck( |
| 22 int32 render_frame_id, |
| 23 SafeBrowsingUrlChecker& request, |
| 24 url.mojom.Url url, |
| 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 }; |
| OLD | NEW |