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

Side by Side Diff: third_party/WebKit/Source/platform/network/NetworkHints.cpp

Issue 2095303002: sendNavigationHint with mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sendNavigationHint mojo Created 4 years, 5 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkHints.h ('k') | third_party/WebKit/public/platform/resource_hints.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698