OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Collin Jackson <collinj@webkit.org> | 2 * Copyright (C) 2008 Collin Jackson <collinj@webkit.org> |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 { | 42 { |
43 Platform::current()->mojoServices()->resourceHintsHandler()->Preresolve(url)
; | 43 Platform::current()->mojoServices()->resourceHintsHandler()->Preresolve(url)
; |
44 } | 44 } |
45 | 45 |
46 void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin) | 46 void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin) |
47 { | 47 { |
48 bool allowCredentials = (crossOrigin != CrossOriginAttributeAnonymous); | 48 bool allowCredentials = (crossOrigin != CrossOriginAttributeAnonymous); |
49 Platform::current()->mojoServices()->resourceHintsHandler()->Preconnect(url,
allowCredentials, 1); | 49 Platform::current()->mojoServices()->resourceHintsHandler()->Preconnect(url,
allowCredentials, 1); |
50 } | 50 } |
51 | 51 |
| 52 void sendNavigationHint(const KURL& url, mojom::blink::NavigationHintType type) |
| 53 { |
| 54 Platform::current()->mojoServices()->resourceHintsHandler()->SendNavigationH
int(url, type); |
| 55 } |
| 56 |
52 } // namespace blink | 57 } // namespace blink |
OLD | NEW |