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

Side by Side Diff: src/uri.h

Issue 1983593002: [builtins] Move EncodeURI from runtime to builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments 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
« no previous file with comments | « src/runtime/runtime-strings.cc ('k') | src/uri.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_URI_H_
6 #define V8_URI_H_
7
8 #include "src/allocation.h"
9 #include "src/objects.h"
10
11 namespace v8 {
12 namespace internal {
13
14 class Uri : public AllStatic {
15 public:
16 static Object* EncodeUri(Isolate* isolate, Handle<String> uri) {
17 return Encode(isolate, uri, true);
18 }
19
20 static Object* EncodeUriComponent(Isolate* isolate,
21 Handle<String> component) {
22 return Encode(isolate, component, false);
23 }
24
25 // DecodeUri
26 // DecodeUriComponent
27 // escape
28 // unescape
29
30 private:
31 static Object* Encode(Isolate* isolate, Handle<String> uri, bool is_uri);
32 // decode
33 };
34
35 } // namespace internal
36 } // namespace v8
37
38 #endif // V8_URI_H_
OLDNEW
« no previous file with comments | « src/runtime/runtime-strings.cc ('k') | src/uri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698