Index: ppapi/thunk/ppb_broker_api.h |
diff --git a/ppapi/thunk/ppb_broker_api.h b/ppapi/thunk/ppb_broker_api.h |
index 803c99e63c0ad634655781817c7cbda814d1bc80..8ac1dd2e547c28ab263c670c3351bef4ddf8f5ff 100644 |
--- a/ppapi/thunk/ppb_broker_api.h |
+++ b/ppapi/thunk/ppb_broker_api.h |
@@ -6,8 +6,10 @@ |
#define PPAPI_THUNK_PPB_BROKER_API_H_ |
#include "base/memory/ref_counted.h" |
+#include "ppapi/c/pp_bool.h" |
#include "ppapi/c/pp_completion_callback.h" |
#include "ppapi/c/pp_stdint.h" |
+#include "ppapi/shared_impl/singleton_resource_id.h" |
namespace ppapi { |
@@ -23,6 +25,19 @@ class PPB_Broker_API { |
virtual int32_t GetHandle(int32_t* handle) = 0; |
}; |
+// TODO(raymes): Merge this into PPB_Broker_API when the PPB_Broker proxy is |
+// refactored to the new resource model. The IsAllowed function should be |
+// attached to the resource implementing the PPB_Broker_API. However in order to |
+// implement this quickly, the function is added in a new instance API. |
+class PPB_Broker_Instance_API { |
+ public: |
+ virtual ~PPB_Broker_Instance_API() {} |
+ |
+ virtual PP_Bool IsAllowed() = 0; |
+ |
+ static const SingletonResourceID kSingletonResourceID = BROKER_SINGLETON_ID; |
+}; |
+ |
} // namespace thunk |
} // namespace ppapi |