Refactor android test results logging.
[chromium-blink-merge.git] / ppapi / proxy / talk_resource.h
blobc73f458ddddadea14d48c497204ef8347b1e4cce
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_TALK_RESOURCE_H_
6 #define PPAPI_PROXY_TALK_RESOURCE_H_
8 #include "ppapi/proxy/plugin_resource.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h"
10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/ppb_talk_private_api.h"
13 namespace ppapi {
14 namespace proxy {
16 class PPAPI_PROXY_EXPORT TalkResource
17 : public PluginResource,
18 public NON_EXPORTED_BASE(thunk::PPB_Talk_Private_API) {
19 public:
20 TalkResource(Connection connection, PP_Instance instance);
21 virtual ~TalkResource();
23 // Resource overrides.
24 thunk::PPB_Talk_Private_API* AsPPB_Talk_Private_API();
26 // PPB_Talk_API implementation.
27 virtual int32_t GetPermission(
28 scoped_refptr<TrackedCallback> callback) OVERRIDE;
30 private:
31 void GetPermissionReply(const ResourceMessageReplyParams& params);
33 scoped_refptr<TrackedCallback> callback_;
35 DISALLOW_COPY_AND_ASSIGN(TalkResource);
38 } // namespace proxy
39 } // namespace ppapi
41 #endif // PPAPI_PROXY_TALK_RESOURCE_H_