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

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

Issue 2778173002: Revert of "Speculatively launch Service Workers on mouse/touch events." (Closed)
Patch Set: rebase Created 3 years, 8 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 27 matching lines...) Expand all
38 } 38 }
39 39
40 void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin) { 40 void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin) {
41 if (WebPrescientNetworking* prescientNetworking = 41 if (WebPrescientNetworking* prescientNetworking =
42 Platform::current()->prescientNetworking()) { 42 Platform::current()->prescientNetworking()) {
43 bool allowCredentials = (crossOrigin != CrossOriginAttributeAnonymous); 43 bool allowCredentials = (crossOrigin != CrossOriginAttributeAnonymous);
44 prescientNetworking->preconnect(url, allowCredentials); 44 prescientNetworking->preconnect(url, allowCredentials);
45 } 45 }
46 } 46 }
47 47
48 void sendNavigationHint(const KURL& url, WebNavigationHintType type) {
49 if (WebPrescientNetworking* prescientNetworking =
50 Platform::current()->prescientNetworking()) {
51 prescientNetworking->sendNavigationHint(url, type);
52 }
53 }
54
55 } // namespace blink 48 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkHints.h ('k') | third_party/WebKit/Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698