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 #ifndef PPAPI_PROXY_BROKER_RESOURCE_H_
6 #define PPAPI_PROXY_BROKER_RESOURCE_H_
8 #include "ppapi/proxy/connection.h"
9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/thunk/ppb_broker_api.h"
16 : public PluginResource
,
17 public thunk::PPB_Broker_Instance_API
{
19 BrokerResource(Connection connection
, PP_Instance instance
);
20 virtual ~BrokerResource();
23 virtual thunk::PPB_Broker_Instance_API
* AsPPB_Broker_Instance_API() OVERRIDE
;
25 // thunk::PPB_Broker_Instance_API implementation.
26 virtual PP_Bool
IsAllowed() OVERRIDE
;
29 DISALLOW_COPY_AND_ASSIGN(BrokerResource
);
35 #endif // PPAPI_PROXY_BROKER_RESOURCE_H_