OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 PPAPI_SHARED_IMPL_SCOPED_PP_VAR_H_ | 5 #ifndef PPAPI_SHARED_IMPL_SCOPED_PP_VAR_H_ |
6 #define PPAPI_SHARED_IMPL_SCOPED_PP_VAR_H_ | 6 #define PPAPI_SHARED_IMPL_SCOPED_PP_VAR_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdlib.h> | 9 #include <stdlib.h> |
9 | 10 |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
12 #include "ppapi/shared_impl/ppapi_shared_export.h" | 13 #include "ppapi/shared_impl/ppapi_shared_export.h" |
13 | 14 |
14 namespace ppapi { | 15 namespace ppapi { |
15 | 16 |
16 class PPAPI_SHARED_EXPORT ScopedPPVar { | 17 class PPAPI_SHARED_EXPORT ScopedPPVar { |
17 public: | 18 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // TODO(raymes): Consider supporting copy/assign. | 77 // TODO(raymes): Consider supporting copy/assign. |
77 DISALLOW_COPY_AND_ASSIGN(ScopedPPVarArray); | 78 DISALLOW_COPY_AND_ASSIGN(ScopedPPVarArray); |
78 | 79 |
79 PP_Var* array_; | 80 PP_Var* array_; |
80 size_t size_; | 81 size_t size_; |
81 }; | 82 }; |
82 | 83 |
83 } // namespace ppapi | 84 } // namespace ppapi |
84 | 85 |
85 #endif // PPAPI_SHARED_IMPL_SCOPED_PP_VAR_H_ | 86 #endif // PPAPI_SHARED_IMPL_SCOPED_PP_VAR_H_ |
OLD | NEW |