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

Side by Side Diff: ppapi/proxy/talk_resource.h

Issue 1088183003: Remove GTalk Pepper interfaces and related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a few references Created 5 years, 8 months 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
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 #ifndef PPAPI_PROXY_TALK_RESOURCE_H_
6 #define PPAPI_PROXY_TALK_RESOURCE_H_
7
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"
12
13 namespace ppapi {
14 namespace proxy {
15
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 ~TalkResource() override;
22
23 // Resource overrides.
24 thunk::PPB_Talk_Private_API* AsPPB_Talk_Private_API() override;
25
26 private:
27 // PPB_Talk_API implementation.
28 int32_t RequestPermission(PP_TalkPermission permission,
29 scoped_refptr<TrackedCallback> callback) override;
30 int32_t StartRemoting(PP_TalkEventCallback event_callback,
31 void* user_data,
32 scoped_refptr<TrackedCallback> callback) override;
33 int32_t StopRemoting(scoped_refptr<TrackedCallback> callback) override;
34
35 // PluginResource override.
36 void OnReplyReceived(const ResourceMessageReplyParams& params,
37 const IPC::Message& msg) override;
38
39 void OnNotifyEvent(const ResourceMessageReplyParams& params,
40 PP_TalkEvent event);
41 void OnRequestPermissionReply(const ResourceMessageReplyParams& params);
42 void OnStartRemotingReply(const ResourceMessageReplyParams& params);
43 void OnStopRemotingReply(const ResourceMessageReplyParams& params);
44
45 scoped_refptr<TrackedCallback> permission_callback_;
46 scoped_refptr<TrackedCallback> start_callback_;
47 scoped_refptr<TrackedCallback> stop_callback_;
48 PP_TalkEventCallback event_callback_;
49 void* event_callback_user_data_;
50
51 DISALLOW_COPY_AND_ASSIGN(TalkResource);
52 };
53
54 } // namespace proxy
55 } // namespace ppapi
56
57 #endif // PPAPI_PROXY_TALK_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698