Disable flaky AnimatedContentSamplerParameterizedTest.FrameTimestampsConvergeTowardsE...
[chromium-blink-merge.git] / ppapi / proxy / broker_resource.cc
blob4fac07e54c3208ff6b992afb9d618f96031c1410
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.
5 #include "ppapi/proxy/broker_resource.h"
7 #include "ppapi/c/pp_bool.h"
8 #include "ppapi/proxy/ppapi_messages.h"
10 namespace ppapi {
11 namespace proxy {
13 BrokerResource::BrokerResource(Connection connection, PP_Instance instance)
14 : PluginResource(connection, instance) {
15 SendCreate(BROWSER, PpapiHostMsg_Broker_Create());
18 BrokerResource::~BrokerResource() {
21 thunk::PPB_Broker_Instance_API* BrokerResource::AsPPB_Broker_Instance_API() {
22 return this;
25 PP_Bool BrokerResource::IsAllowed() {
26 int32_t result =
27 SyncCall<IPC::Message>(BROWSER, PpapiHostMsg_Broker_IsAllowed());
28 return PP_FromBool(result == PP_OK);
31 } // namespace proxy
32 } // namespace ppapi