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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-strings.cc ('k') | src/uri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/uri.h
diff --git a/src/uri.h b/src/uri.h
new file mode 100644
index 0000000000000000000000000000000000000000..e41e8a29e18635403f008bc1fe823a9b1164fc73
--- /dev/null
+++ b/src/uri.h
@@ -0,0 +1,38 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_URI_H_
+#define V8_URI_H_
+
+#include "src/allocation.h"
+#include "src/objects.h"
+
+namespace v8 {
+namespace internal {
+
+class Uri : public AllStatic {
+ public:
+ static Object* EncodeUri(Isolate* isolate, Handle<String> uri) {
+ return Encode(isolate, uri, true);
+ }
+
+ static Object* EncodeUriComponent(Isolate* isolate,
+ Handle<String> component) {
+ return Encode(isolate, component, false);
+ }
+
+ // DecodeUri
+ // DecodeUriComponent
+ // escape
+ // unescape
+
+ private:
+ static Object* Encode(Isolate* isolate, Handle<String> uri, bool is_uri);
+ // decode
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif // V8_URI_H_
« 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