OLD | NEW |
1 // Copyright (c) 2011 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 #ifndef PPAPI_THUNK_PPB_BROKER_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_BROKER_API_H_ |
6 #define PPAPI_THUNK_PPB_BROKER_API_H_ | 6 #define PPAPI_THUNK_PPB_BROKER_API_H_ |
7 | 7 |
| 8 #include "base/memory/ref_counted.h" |
8 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
10 | 11 |
11 namespace ppapi { | 12 namespace ppapi { |
| 13 |
| 14 class TrackedCallback; |
| 15 |
12 namespace thunk { | 16 namespace thunk { |
13 | 17 |
14 class PPB_Broker_API { | 18 class PPB_Broker_API { |
15 public: | 19 public: |
16 virtual ~PPB_Broker_API() {} | 20 virtual ~PPB_Broker_API() {} |
17 | 21 |
18 virtual int32_t Connect(PP_CompletionCallback connect_callback) = 0; | 22 virtual int32_t Connect(scoped_refptr<TrackedCallback> connect_callback) = 0; |
19 virtual int32_t GetHandle(int32_t* handle) = 0; | 23 virtual int32_t GetHandle(int32_t* handle) = 0; |
20 }; | 24 }; |
21 | 25 |
22 } // namespace thunk | 26 } // namespace thunk |
23 } // namespace ppapi | 27 } // namespace ppapi |
24 | 28 |
25 #endif // PPAPI_THUNK_PPB_BROKER_API_H_ | 29 #endif // PPAPI_THUNK_PPB_BROKER_API_H_ |
OLD | NEW |