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

Side by Side Diff: content/browser/renderer_host/java/gin_java_script_to_java_types_coercion.h

Issue 336313018: [Android] Move content/browser/{renderer_host => android}/java/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated paths for unit tests, rebased Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 CONTENT_BROWSER_RENDERER_HOST_JAVA_GIN_JAVA_SCRIPT_TO_JAVA_TYPES_COERCIO N_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_GIN_JAVA_SCRIPT_TO_JAVA_TYPES_COERCIO N_H_
7
8 #include <map>
9
10 #include "base/android/jni_weak_ref.h"
11 #include "base/values.h"
12 #include "content/browser/renderer_host/java/gin_java_bound_object.h"
13 #include "content/browser/renderer_host/java/java_type.h"
14
15 namespace content {
16
17 typedef std::map<GinJavaBoundObject::ObjectID, JavaObjectWeakGlobalRef>
18 ObjectRefs;
19
20 jvalue CoerceJavaScriptValueToJavaValue(
21 JNIEnv* env,
22 const base::Value* value,
23 const JavaType& target_type,
24 bool coerce_to_string,
25 const ObjectRefs& object_refs);
26
27 void ReleaseJavaValueIfRequired(JNIEnv* env,
28 jvalue* value,
29 const JavaType& type);
30
31 } // namespace content
32
33 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_GIN_JAVA_SCRIPT_TO_JAVA_TYPES_COER CION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698