OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/bind.h" | |
6 #include "ppapi/proxy/ppapi_messages.h" | |
5 #include "ppapi/proxy/talk_resource.h" | 7 #include "ppapi/proxy/talk_resource.h" |
viettrungluu
2013/07/12 21:52:12
"
Mostyn Bramley-Moore
2013/07/13 06:40:15
Done.
| |
6 | 8 |
7 #include "ppapi/proxy/ppapi_messages.h" | |
8 | |
9 namespace ppapi { | 9 namespace ppapi { |
10 namespace proxy { | 10 namespace proxy { |
11 | 11 |
12 TalkResource::TalkResource(Connection connection, PP_Instance instance) | 12 TalkResource::TalkResource(Connection connection, PP_Instance instance) |
13 : PluginResource(connection, instance), | 13 : PluginResource(connection, instance), |
14 event_callback_(NULL), | 14 event_callback_(NULL), |
15 event_callback_user_data_(NULL) { | 15 event_callback_user_data_(NULL) { |
16 SendCreate(BROWSER, PpapiHostMsg_Talk_Create()); | 16 SendCreate(BROWSER, PpapiHostMsg_Talk_Create()); |
17 } | 17 } |
18 | 18 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 | 104 |
105 void TalkResource::OnStopRemotingReply( | 105 void TalkResource::OnStopRemotingReply( |
106 const ResourceMessageReplyParams& params) { | 106 const ResourceMessageReplyParams& params) { |
107 event_callback_ = NULL; | 107 event_callback_ = NULL; |
108 event_callback_user_data_ = NULL; | 108 event_callback_user_data_ = NULL; |
109 stop_callback_->Run(params.result()); | 109 stop_callback_->Run(params.result()); |
110 } | 110 } |
111 | 111 |
112 } // namespace proxy | 112 } // namespace proxy |
113 } // namespace ppapi | 113 } // namespace ppapi |
OLD | NEW |