| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CPP_DIRECTORY_ENTRY_H_ | 5 #ifndef PPAPI_CPP_DIRECTORY_ENTRY_H_ |
| 6 #define PPAPI_CPP_DIRECTORY_ENTRY_H_ | 6 #define PPAPI_CPP_DIRECTORY_ENTRY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ppapi/c/pp_array_output.h" | 10 #include "ppapi/c/pp_array_output.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 typedef DirectoryEntryArrayOutputAdapterWithStorage StorageType; | 112 typedef DirectoryEntryArrayOutputAdapterWithStorage StorageType; |
| 113 | 113 |
| 114 static inline APIArgType StorageToAPIArg(StorageType& t) { | 114 static inline APIArgType StorageToAPIArg(StorageType& t) { |
| 115 return t.pp_array_output(); | 115 return t.pp_array_output(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 static inline std::vector<DirectoryEntry>& StorageToPluginArg( | 118 static inline std::vector<DirectoryEntry>& StorageToPluginArg( |
| 119 StorageType& t) { | 119 StorageType& t) { |
| 120 return t.output(); | 120 return t.output(); |
| 121 } | 121 } |
| 122 |
| 123 static inline void Initialize(StorageType* /* t */) {} |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace internal | 126 } // namespace internal |
| 125 } // namespace pp | 127 } // namespace pp |
| 126 | 128 |
| 127 #endif // PPAPI_CPP_DIRECTORY_ENTRY_H_ | 129 #endif // PPAPI_CPP_DIRECTORY_ENTRY_H_ |
| OLD | NEW |