1 // Copyright (c) 2012 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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_TYPE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_TYPE_H_
10 #include "base/memory/scoped_ptr.h"
14 // The type of a Java value. A light-weight enum-like structure intended for
15 // use by value and in STL containers.
18 JavaType(const JavaType& other);
20 JavaType& operator=(const JavaType& other);
22 // Java's reflection API represents types as a string using an extended
24 static JavaType CreateFromBinaryName(const std::string& binary_name);
35 // This is only used as a return type, so we should never convert from
36 // JavaScript with this type.
39 // We special-case strings, as they get special handling when coercing.
45 scoped_ptr<JavaType> inner_type; // Used for TypeArray only.
48 } // namespace content
50 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_TYPE_H_