| Index: tonic/dart_library_provider.h
|
| diff --git a/tonic/dart_library_provider.h b/tonic/dart_library_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eef3c659d5dfa1ec9cf10264265564e72c5ea4f8
|
| --- /dev/null
|
| +++ b/tonic/dart_library_provider.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef SKY_ENGINE_TONIC_DART_LIBRARY_PROVIDER_H_
|
| +#define SKY_ENGINE_TONIC_DART_LIBRARY_PROVIDER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/callback.h"
|
| +#include "dart/runtime/include/dart_api.h"
|
| +#include "mojo/public/cpp/system/data_pipe.h"
|
| +
|
| +namespace blink {
|
| +
|
| +typedef base::Callback<void(mojo::ScopedDataPipeConsumerHandle)>
|
| + DataPipeConsumerCallback;
|
| +
|
| +class DartLibraryProvider {
|
| + public:
|
| + virtual void GetLibraryAsStream(const std::string& name,
|
| + DataPipeConsumerCallback callback) = 0;
|
| +
|
| + virtual Dart_Handle CanonicalizeURL(Dart_Handle library, Dart_Handle url) = 0;
|
| +
|
| + virtual ~DartLibraryProvider();
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // SKY_ENGINE_TONIC_DART_LIBRARY_PROVIDER_H_
|
|
|