| 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 #include "nacl_io/real_pepper_interface.h" | 5 #include "nacl_io/real_pepper_interface.h" |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <ppapi/c/pp_errors.h> | 9 #include <ppapi/c/pp_errors.h> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 PP_Instance RealPepperInterface::GetInstance() { | 96 PP_Instance RealPepperInterface::GetInstance() { |
| 97 return instance_; | 97 return instance_; |
| 98 } | 98 } |
| 99 | 99 |
| 100 // Define getter function. | 100 // Define getter function. |
| 101 #include "nacl_io/pepper/undef_macros.h" | 101 #include "nacl_io/pepper/undef_macros.h" |
| 102 #include "nacl_io/pepper/define_empty_macros.h" | 102 #include "nacl_io/pepper/define_empty_macros.h" |
| 103 #undef BEGIN_INTERFACE | 103 #undef BEGIN_INTERFACE |
| 104 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ | 104 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ |
| 105 BaseClass* RealPepperInterface::Get##BaseClass() { \ | 105 BaseClass* RealPepperInterface::Get##BaseClass() { \ |
| 106 return BaseClass##interface_; \ | 106 return BaseClass##interface_; \ |
| 107 } | 107 } |
| 108 #include "nacl_io/pepper/all_interfaces.h" | 108 #include "nacl_io/pepper/all_interfaces.h" |
| 109 | 109 |
| 110 } // namespace nacl_io | 110 } // namespace nacl_io |
| 111 | |
| OLD | NEW |