OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 WEBKIT_PLUGINS_PPAPI_V8_VAR_CONVERTER_H | 5 #ifndef CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H |
6 #define WEBKIT_PLUGINS_PPAPI_V8_VAR_CONVERTER_H | 6 #define CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H |
7 | 7 |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
13 #include "webkit/plugins/webkit_plugins_export.h" | 13 #include "content/common/content_export.h" |
14 | 14 |
15 namespace webkit { | 15 namespace webkit { |
16 namespace ppapi { | 16 namespace ppapi { |
17 namespace V8VarConverter { | 17 namespace V8VarConverter { |
18 | 18 |
19 // Converts the given PP_Var to a v8::Value. True is returned upon success. | 19 // Converts the given PP_Var to a v8::Value. True is returned upon success. |
20 bool WEBKIT_PLUGINS_EXPORT ToV8Value(const PP_Var& var, | 20 bool CONTENT_EXPORT ToV8Value(const PP_Var& var, |
21 v8::Handle<v8::Context> context, | 21 v8::Handle<v8::Context> context, |
22 v8::Handle<v8::Value>* result); | 22 v8::Handle<v8::Value>* result); |
23 // Converts the given v8::Value to a PP_Var. True is returned upon success. | 23 // Converts the given v8::Value to a PP_Var. True is returned upon success. |
24 // Every PP_Var in the reference graph of which |result| is apart will have | 24 // Every PP_Var in the reference graph of which |result| is apart will have |
25 // a refcount equal to the number of references to it in the graph. |result| | 25 // a refcount equal to the number of references to it in the graph. |result| |
26 // will have one additional reference. | 26 // will have one additional reference. |
27 bool WEBKIT_PLUGINS_EXPORT FromV8Value(v8::Handle<v8::Value> val, | 27 bool CONTENT_EXPORT FromV8Value(v8::Handle<v8::Value> val, |
28 v8::Handle<v8::Context> context, | 28 v8::Handle<v8::Context> context, |
29 PP_Var* result); | 29 PP_Var* result); |
30 | 30 |
31 } // namespace V8VarConverter | 31 } // namespace V8VarConverter |
32 } // namespace ppapi | 32 } // namespace ppapi |
33 } // namespace webkit | 33 } // namespace webkit |
34 | 34 |
35 #endif // WEBKIT_PLUGINS_PPAPI_V8_VAR_CONVERTER_H | 35 #endif // CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H |
OLD | NEW |