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

Side by Side Diff: runtime/vm/uri.h

Issue 2011543002: Canonicalize uris in C++ instead of Dart for the standalone embedder. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4
5 #ifndef VM_URI_H_
6 #define VM_URI_H_
7
8 #include "platform/utils.h"
9 #include "vm/globals.h"
10
11 namespace dart {
12
13 class Zone;
ahe 2016/05/25 12:44:52 What's this for?
turnidge 2016/05/27 21:40:06 Nothing! Removed.
14
15 struct ParsedUri {
16 const char* scheme;
17 const char* userinfo;
18 const char* host;
19 const char* port;
20 const char* path;
21 const char* query;
22 const char* fragment;
23 };
24
25 // Parses a uri into its parts. Returns false if the parse fails.
26 bool ParseUri(const char* uri, ParsedUri* parsed_uri);
27
28 // Resolves some reference uri with respect to a base uri.
29 bool ResolveUri(const char* ref_uri,
30 const char* base_uri,
31 const char** target_uri);
32
33 } // namespace dart
34
35 #endif // VM_URI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698