OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_PPB_MOJO_API_H_ |
| 6 #define PPAPI_THUNK_PPB_MOJO_API_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "ppapi/shared_impl/singleton_resource_id.h" |
| 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 11 |
| 12 namespace ppapi { |
| 13 namespace thunk { |
| 14 |
| 15 class PPAPI_THUNK_EXPORT PPB_Mojo_API { |
| 16 public: |
| 17 virtual ~PPB_Mojo_API() {} |
| 18 |
| 19 virtual int32_t GetHandle(PP_Instance instance, |
| 20 uint32_t* out_mojo_handle, |
| 21 scoped_refptr<TrackedCallback> callback) = 0; |
| 22 |
| 23 static const SingletonResourceID kSingletonResourceID = MOJO_SINGLETON_ID; |
| 24 }; |
| 25 |
| 26 } // namespace thunk |
| 27 } // namespace ppapi |
| 28 |
| 29 #endif // PPAPI_THUNK_PPB_MOJO_API_H_ |
OLD | NEW |