Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / loader / NetworkHintsInterface.h
blob1932bfc73ccffe5aff04ae4b4b30c49175706c86
1 // Copyright 2015 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.
5 #ifndef NetworkHintsInterface_h
6 #define NetworkHintsInterface_h
8 #include "platform/network/NetworkHints.h"
10 namespace blink {
12 class NetworkHintsInterface {
13 public:
14 virtual void dnsPrefetchHost(const String&) const = 0;
15 virtual void preconnectHost(const KURL&, const CrossOriginAttributeValue) const = 0;
18 class NetworkHintsInterfaceImpl : public NetworkHintsInterface {
19 void dnsPrefetchHost(const String& host) const override
21 prefetchDNS(host);
24 void preconnectHost(const KURL& host, const CrossOriginAttributeValue crossOrigin) const override
26 preconnect(host, crossOrigin);
30 } // namespace blink
32 #endif