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

Side by Side Diff: Source/core/loader/Preconnecter.h

Issue 1152043005: Add <link rel=preconnect> support to the HTMLPreloadScanner (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
(Empty)
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.
4
5 #ifndef Preconnecter_h
6 #define Preconnecter_h
7
8 #include "core/html/CrossOriginAttribute.h"
9 #include "platform/weborigin/KURL.h"
10
11 namespace blink {
12
13 class PreconnecterHost {
14 public:
15 virtual void preconnect(KURL& host, CrossOriginAttributeValue) = 0;
16 virtual ~PreconnecterHost() { }
17 };
18
19 class Preconnecter : public PreconnecterHost {
20 public:
21 static PassOwnPtr<PreconnecterHost> create();
22 virtual ~Preconnecter() { }
23
24 virtual void preconnect(KURL& host, CrossOriginAttributeValue);
25 };
26
27 }; // namespace blink
28
29 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698