Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: ppapi/thunk/ppb_broker_api.h

Issue 11316316: Implement an IsAllowed function in the pepper PPB_Broker_Trusted API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/interfaces_ppb_private.h ('k') | ppapi/thunk/ppb_broker_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ppapi/thunk/interfaces_ppb_private.h ('k') | ppapi/thunk/ppb_broker_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698