OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_VALUE_H_ | 5 #ifndef CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_VALUE_H_ |
6 #define CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_VALUE_H_ | 6 #define CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_VALUE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 CONTENT_EXPORT bool IsType(Type type) const; | 48 CONTENT_EXPORT bool IsType(Type type) const; |
49 | 49 |
50 CONTENT_EXPORT bool GetAsNonFinite(float* out_value) const; | 50 CONTENT_EXPORT bool GetAsNonFinite(float* out_value) const; |
51 CONTENT_EXPORT bool GetAsObjectID(int32* out_object_id) const; | 51 CONTENT_EXPORT bool GetAsObjectID(int32* out_object_id) const; |
52 | 52 |
53 private: | 53 private: |
54 explicit GinJavaBridgeValue(Type type); | 54 explicit GinJavaBridgeValue(Type type); |
55 explicit GinJavaBridgeValue(const base::BinaryValue* value); | 55 explicit GinJavaBridgeValue(const base::BinaryValue* value); |
56 base::BinaryValue* SerializeToBinaryValue(); | 56 base::BinaryValue* SerializeToBinaryValue(); |
57 | 57 |
58 Pickle pickle_; | 58 base::Pickle pickle_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeValue); | 60 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeValue); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_VALUE_H_ | 65 #endif // CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_VALUE_H_ |
OLD | NEW |