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

Side by Side Diff: ppapi/proxy/broker_resource.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/broker_resource.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ppapi/proxy/broker_resource.h"
6
7 #include "ppapi/c/pp_bool.h"
8 #include "ppapi/proxy/ppapi_messages.h"
9
10 namespace ppapi {
11 namespace proxy {
12
13 BrokerResource::BrokerResource(Connection connection, PP_Instance instance)
14 : PluginResource(connection, instance) {
15 SendCreate(BROWSER, PpapiHostMsg_Broker_Create());
16 }
17
18 BrokerResource::~BrokerResource() {
19 }
20
21 thunk::PPB_Broker_Instance_API* BrokerResource::AsPPB_Broker_Instance_API() {
22 return this;
23 }
24
25 PP_Bool BrokerResource::IsAllowed() {
26 int32_t result =
27 SyncCall<IPC::Message>(BROWSER, PpapiHostMsg_Broker_IsAllowed());
28 return PP_FromBool(result == PP_OK);
29 }
30
31 } // namespace proxy
32 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/broker_resource.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698