| OLD | NEW |
| (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 |
| OLD | NEW |