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

Side by Side Diff: mojo/public/bindings/js/v8_string.h

Issue 59153005: Begin implementing V8 bindings for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style nits Created 7 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium 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 MOJO_PUBLIC_BINDINGS_JS_V8_STRING_H_
6 #define MOJO_PUBLIC_BINDINGS_JS_V8_STRING_H_
7
8 #include <string>
9
10 #include "mojo/public/bindings/js/v8_wrapper.h"
11
12 namespace mojo {
13 namespace js {
14
15 // TODO(abarth): Currently our Wrapper<std::string> is a very basic "always
16 // copy" implementation. Eventually, we'll want to avoid copies using external
17 // string.
18
19 template<>
20 struct Wrapper<std::string> {
21 static v8::Handle<v8::String> ToObject(v8::Isolate* isolate,
22 std::string native);
23 static std::string ToNative(v8::Handle<v8::Value> value);
24 };
25
26 } // namespace js
27 } // namespace mojo
28
29 #endif // MOJO_PUBLIC_BINDINGS_JS_V8_STRING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698