| Index: runtime/bin/extensions.h
|
| diff --git a/runtime/bin/extensions.h b/runtime/bin/extensions.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fda8f1e4d41754e1f9591496fdd7d55f262b33ac
|
| --- /dev/null
|
| +++ b/runtime/bin/extensions.h
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +#ifndef BIN_EXTENSIONS_H_
|
| +#define BIN_EXTENSIONS_H_
|
| +
|
| +#include "include/dart_api.h"
|
| +#include "platform/globals.h"
|
| +
|
| +class Extensions {
|
| + public:
|
| + // TODO(whesse): Make loading extensions lazy, so dynamic library is loaded
|
| + // only when first native function is called.
|
| + // TODO(whesse): Make extension load from a relative path relative to
|
| + // the library it is in. Currently loads from current working directory.
|
| + static Dart_Handle LoadExtension(const char* extension_url,
|
| + Dart_Handle library);
|
| + private:
|
| + DISALLOW_ALLOCATION();
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(Extensions);
|
| +};
|
| +
|
| +#endif // BIN_EXTENSIONS_H_
|
|
|