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

Side by Side Diff: runtime/bin/extensions.h

Issue 9694045: Change lookup path for Dart native extensions shared libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix isAbsolutePath, remove trailing whitespace. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_EXTENSIONS_H_ 5 #ifndef BIN_EXTENSIONS_H_
6 #define BIN_EXTENSIONS_H_ 6 #define BIN_EXTENSIONS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 10
11 class Extensions { 11 class Extensions {
12 public: 12 public:
13 // TODO(whesse): Make extension load from a relative path relative to 13 // TODO(whesse): Make extension load from a relative path relative to
14 // the library it is in. Currently loads from current working directory. 14 // the library it is in. Currently loads from current working directory.
15 static Dart_Handle LoadExtension(const char* extension_url, 15 static Dart_Handle LoadExtension(const char* extension_url,
16 Dart_Handle parent_library); 16 Dart_Handle parent_library);
17 17
18 private: 18 private:
19 // The returned string must be freed. 19 // The returned string must be freed.
20 static char* Concatenate(const char** strings); 20 static char* Concatenate(const char** strings);
21 21
22 // Platform-specific implementations. 22 // Platform-specific implementations.
23 static void* LoadExtensionLibrary(const char* library_name); 23 static void* LoadExtensionLibrary(const char* library_path,
24 const char* extension_name);
24 static void* ResolveSymbol(void* lib_handle, const char* symbol); 25 static void* ResolveSymbol(void* lib_handle, const char* symbol);
25 26
26 DISALLOW_ALLOCATION(); 27 DISALLOW_ALLOCATION();
27 DISALLOW_IMPLICIT_CONSTRUCTORS(Extensions); 28 DISALLOW_IMPLICIT_CONSTRUCTORS(Extensions);
28 }; 29 };
29 30
30 #endif // BIN_EXTENSIONS_H_ 31 #endif // BIN_EXTENSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698