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_RESOURCE_H_ | 5 #ifndef PPAPI_CPP_RESOURCE_H_ |
6 #define PPAPI_CPP_RESOURCE_H_ | 6 #define PPAPI_CPP_RESOURCE_H_ |
7 | 7 |
8 #include "ppapi/c/pp_resource.h" | 8 #include "ppapi/c/pp_resource.h" |
9 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
10 #include "ppapi/cpp/pass_ref.h" | 10 #include "ppapi/cpp/pass_ref.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 private: | 84 private: |
85 PP_Resource pp_resource_; | 85 PP_Resource pp_resource_; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace pp | 88 } // namespace pp |
89 | 89 |
90 inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) { | 90 inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) { |
91 return lhs.pp_resource() == rhs.pp_resource(); | 91 return lhs.pp_resource() == rhs.pp_resource(); |
92 } | 92 } |
93 | 93 |
| 94 inline bool operator!=(const pp::Resource& lhs, const pp::Resource& rhs) { |
| 95 return !(lhs == rhs); |
| 96 } |
| 97 |
94 #endif // PPAPI_CPP_RESOURCE_H_ | 98 #endif // PPAPI_CPP_RESOURCE_H_ |
OLD | NEW |