| 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 CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H_ | 6 #define CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/callback.h" | 8 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" |
| 11 #include "content/common/content_export.h" |
| 11 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
| 13 #include "ppapi/shared_impl/scoped_pp_var.h" | 14 #include "ppapi/shared_impl/scoped_pp_var.h" |
| 14 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 15 #include "content/common/content_export.h" | |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class ResourceConverter; | 19 class ResourceConverter; |
| 20 | 20 |
| 21 class CONTENT_EXPORT V8VarConverter { | 21 class CONTENT_EXPORT V8VarConverter { |
| 22 public: | 22 public: |
| 23 // Whether or not to allow converting object vars. If they are not allowed | 23 // Whether or not to allow converting object vars. If they are not allowed |
| 24 // and they are passed in, conversion will fail. | 24 // and they are passed in, conversion will fail. |
| 25 enum AllowObjectVars { | 25 enum AllowObjectVars { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // The converter to use for converting V8 vars to resources. | 85 // The converter to use for converting V8 vars to resources. |
| 86 scoped_ptr<ResourceConverter> resource_converter_; | 86 scoped_ptr<ResourceConverter> resource_converter_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(V8VarConverter); | 88 DISALLOW_COPY_AND_ASSIGN(V8VarConverter); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace content | 91 } // namespace content |
| 92 | 92 |
| 93 #endif // CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H_ | 93 #endif // CONTENT_RENDERER_PEPPER_V8_VAR_CONVERTER_H_ |
| OLD | NEW |