 Chromium Code Reviews
 Chromium Code Reviews Issue 2900563002:
  Network service: Safe browsing check for sub-resources from renderer.  (Closed)
    
  
    Issue 2900563002:
  Network service: Safe browsing check for sub-resources from renderer.  (Closed) 
  | 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 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 }; | |
| OLD | NEW |