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 SKY_ENGINE_CORE_SCRIPT_DART_LIBRARY_PROVIDER_WEBVIEW_H_ |
| 6 #define SKY_ENGINE_CORE_SCRIPT_DART_LIBRARY_PROVIDER_WEBVIEW_H_ |
| 7 |
| 8 #include "sky/engine/tonic/dart_library_provider.h" |
| 9 #include "sky/engine/wtf/HashSet.h" |
| 10 #include "sky/engine/wtf/OwnPtr.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class DartLibraryProviderWebView : public DartLibraryProvider { |
| 15 public: |
| 16 explicit DartLibraryProviderWebView(); |
| 17 ~DartLibraryProviderWebView() override; |
| 18 |
| 19 private: |
| 20 class Job; |
| 21 |
| 22 // |DartLibraryProvider| implementation: |
| 23 void GetLibraryAsStream( |
| 24 const String& name, |
| 25 DataPipeConsumerCallback callback) |
| 26 override; |
| 27 |
| 28 Dart_Handle CanonicalizeURL(Dart_Handle library, Dart_Handle url) override; |
| 29 |
| 30 HashSet<OwnPtr<Job>> jobs_; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // SKY_ENGINE_CORE_SCRIPT_DART_LIBRARY_PROVIDER_WEBVIEW_H_ |
OLD | NEW |