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

Unified Diff: runtime/bin/extensions.h

Issue 9465004: Add native extensions for the Dart shell to mac and windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add MacOS implementation, refactor and create extensions.cc Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/extensions.h
diff --git a/runtime/bin/extensions.h b/runtime/bin/extensions.h
index fda8f1e4d41754e1f9591496fdd7d55f262b33ac..e6ad42179f010fd2c69f61f3ac64bda954a0f749 100644
--- a/runtime/bin/extensions.h
+++ b/runtime/bin/extensions.h
@@ -10,12 +10,16 @@
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);
Ivan Posva 2012/03/07 19:06:23 library -> parent_library Without any documentatio
Bill Hesse 2012/03/08 12:04:37 Done.
+ static char* MakeString(const char* format, const char* name);
Mads Ager (google) 2012/03/07 14:31:48 This one should not be exposed in the Extensions c
Bill Hesse 2012/03/08 12:04:37 It is used in both the platform-specific and platf
+
+ // Platform-specific implementations.
+ static void* LoadExtensionLibrary(const char* library_name);
Mads Ager (google) 2012/03/07 14:31:48 Could these two be private?
Bill Hesse 2012/03/08 12:04:37 Yes.
+ static void* ResolveSymbol(void* lib_handle, const char* symbol);
+
private:
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Extensions);

Powered by Google App Engine
This is Rietveld 408576698