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

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

Issue 2068833002: Change Dart_DefaultCanonicalizeUrl to accept the library url string instead of a library, this is u… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
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 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 2685
2686 /** 2686 /**
2687 * Canonicalizes a url with respect to some library. 2687 * Canonicalizes a url with respect to some library.
2688 * 2688 *
2689 * The url is resolved with respect to the library's url and some url 2689 * The url is resolved with respect to the library's url and some url
2690 * normalizations are performed. 2690 * normalizations are performed.
2691 * 2691 *
2692 * This canonicalization function should be sufficient for most 2692 * This canonicalization function should be sufficient for most
2693 * embedders to implement the Dart_kCanonicalizeUrl tag. 2693 * embedders to implement the Dart_kCanonicalizeUrl tag.
2694 * 2694 *
2695 * \param library The library relative to which the url is being 2695 * \param library_url The library url relative to which the url is
Cutch 2016/06/14 21:38:31 s/library_url/base_url ?
siva 2016/06/14 22:23:29 Done.
2696 * resolved. 2696 * being resolved.
2697 * \param url The url being resolved and canonicalized. This 2697 * \param url The url being resolved and canonicalized. This
2698 * parameter is a string handle. 2698 * parameter is a string handle.
2699 * 2699 *
2700 * \return If no error occurs, a String object is returned. Otherwise 2700 * \return If no error occurs, a String object is returned. Otherwise
2701 * an error handle is returned. 2701 * an error handle is returned.
2702 */ 2702 */
2703 DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle library, 2703 DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle library_url,
2704 Dart_Handle url); 2704 Dart_Handle url);
2705 2705
2706 /** 2706 /**
2707 * Loads the root script for the current isolate. The script can be 2707 * Loads the root script for the current isolate. The script can be
2708 * embedded in another file, for example in an html file. 2708 * embedded in another file, for example in an html file.
2709 * 2709 *
2710 * TODO(turnidge): Document. 2710 * TODO(turnidge): Document.
2711 * 2711 *
2712 * \param line_offset is the number of text lines before the 2712 * \param line_offset is the number of text lines before the
2713 * first line of the Dart script in the containing file. 2713 * first line of the Dart script in the containing file.
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 /** 3071 /**
3072 * Returns whether the VM was initialized with a precompiled snapshot. Only 3072 * Returns whether the VM was initialized with a precompiled snapshot. Only
3073 * valid after Dart_Initialize. 3073 * valid after Dart_Initialize.
3074 * DEPRECATED. This is currently used to disable Platform.executable and 3074 * DEPRECATED. This is currently used to disable Platform.executable and
3075 * Platform.resolvedExecutable under precompilation to prevent process 3075 * Platform.resolvedExecutable under precompilation to prevent process
3076 * spawning tests from becoming fork-bombs. 3076 * spawning tests from becoming fork-bombs.
3077 */ 3077 */
3078 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); 3078 DART_EXPORT bool Dart_IsRunningPrecompiledCode();
3079 3079
3080 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3080 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698