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

Side by Side Diff: runtime/include/dart_api.h

Issue 590123002: Revert "Per isolate package root." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 * Dart_LoadScript or Dart_LoadScriptFromSnapshot. 713 * Dart_LoadScript or Dart_LoadScriptFromSnapshot.
714 * This uri will be NULL if the isolate is being created using the 714 * This uri will be NULL if the isolate is being created using the
715 * spawnFunction isolate API. 715 * spawnFunction isolate API.
716 * The callback is responsible for loading the script used in the 716 * The callback is responsible for loading the script used in the
717 * parent isolate by a call to Dart_LoadScript or 717 * parent isolate by a call to Dart_LoadScript or
718 * Dart_LoadScriptFromSnapshot. 718 * Dart_LoadScriptFromSnapshot.
719 * \param main The name of the main entry point this isolate will 719 * \param main The name of the main entry point this isolate will
720 * eventually run. This is provided for advisory purposes only to 720 * eventually run. This is provided for advisory purposes only to
721 * improve debugging messages. The main function is not invoked by 721 * improve debugging messages. The main function is not invoked by
722 * this function. 722 * this function.
723 * \param package_root The package root path for this isolate to resolve
724 * package imports against. If this parameter is NULL, the package root path
725 * of the parent isolate should be used.
726 * \param callback_data The callback data which was passed to the 723 * \param callback_data The callback data which was passed to the
727 * parent isolate when it was created by calling Dart_CreateIsolate(). 724 * parent isolate when it was created by calling Dart_CreateIsolate().
728 * \param error A structure into which the embedder can place a 725 * \param error A structure into which the embedder can place a
729 * C string containing an error message in the case of failures. 726 * C string containing an error message in the case of failures.
730 * 727 *
731 * \return The embedder returns NULL if the creation and 728 * \return The embedder returns NULL if the creation and
732 * initialization was not successful and the isolate if successful. 729 * initialization was not successful and the isolate if successful.
733 */ 730 */
734 typedef Dart_Isolate (*Dart_IsolateCreateCallback)(const char* script_uri, 731 typedef Dart_Isolate (*Dart_IsolateCreateCallback)(const char* script_uri,
735 const char* main, 732 const char* main,
736 const char* package_root,
737 void* callback_data, 733 void* callback_data,
738 char** error); 734 char** error);
739 735
740 736
741 /** 737 /**
742 * The service isolate creation and initialization callback function. 738 * The service isolate creation and initialization callback function.
743 * 739 *
744 * This callback, provided by the embedder, is called when the vm 740 * This callback, provided by the embedder, is called when the vm
745 * needs to create the service isolate. The callback should create an isolate 741 * needs to create the service isolate. The callback should create an isolate
746 * by calling Dart_CreateIsolate and prepare the isolate to be used as 742 * by calling Dart_CreateIsolate and prepare the isolate to be used as
(...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 * NOTE: If multiple callbacks with the same name are registered, only the 2833 * NOTE: If multiple callbacks with the same name are registered, only the
2838 * last callback registered will be remembered. 2834 * last callback registered will be remembered.
2839 */ 2835 */
2840 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2836 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2841 const char* name, 2837 const char* name,
2842 Dart_ServiceRequestCallback callback, 2838 Dart_ServiceRequestCallback callback,
2843 void* user_data); 2839 void* user_data);
2844 2840
2845 2841
2846 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2842 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698