| 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 LIBRARIES_NACL_IO_PEPPER_INTERFACE_DUMMY_H_ | 5 #ifndef LIBRARIES_NACL_IO_PEPPER_INTERFACE_DUMMY_H_ |
| 6 #define LIBRARIES_NACL_IO_PEPPER_INTERFACE_DUMMY_H_ | 6 #define LIBRARIES_NACL_IO_PEPPER_INTERFACE_DUMMY_H_ |
| 7 | 7 |
| 8 #include "nacl_io/pepper_interface.h" | 8 #include "nacl_io/pepper_interface.h" |
| 9 | 9 |
| 10 // This class simplifies implementing a PepperInterface-derived class where you | 10 // This class simplifies implementing a PepperInterface-derived class where you |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public: | 27 public: |
| 28 PepperInterfaceDummy() {} | 28 PepperInterfaceDummy() {} |
| 29 virtual ~PepperInterfaceDummy() {} | 29 virtual ~PepperInterfaceDummy() {} |
| 30 virtual PP_Instance GetInstance() { return 0; } | 30 virtual PP_Instance GetInstance() { return 0; } |
| 31 | 31 |
| 32 // Interface getters. | 32 // Interface getters. |
| 33 #include "nacl_io/pepper/undef_macros.h" | 33 #include "nacl_io/pepper/undef_macros.h" |
| 34 #include "nacl_io/pepper/define_empty_macros.h" | 34 #include "nacl_io/pepper/define_empty_macros.h" |
| 35 #undef BEGIN_INTERFACE | 35 #undef BEGIN_INTERFACE |
| 36 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ | 36 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ |
| 37 virtual BaseClass* Get##BaseClass() { return NULL; } | 37 virtual BaseClass* Get##BaseClass() { return NULL; } |
| 38 #include "nacl_io/pepper/all_interfaces.h" | 38 #include "nacl_io/pepper/all_interfaces.h" |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace nacl_io | 41 } // namespace nacl_io |
| 42 | 42 |
| 43 #endif // LIBRARIES_NACL_IO_PEPPER_INTERFACE_DUMMY_H_ | 43 #endif // LIBRARIES_NACL_IO_PEPPER_INTERFACE_DUMMY_H_ |
| OLD | NEW |