| 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 "ppapi/proxy/talk_resource.h" | 5 #include "ppapi/proxy/talk_resource.h" | 
| 6 | 6 | 
|  | 7 #include "base/bind.h" | 
| 7 #include "ppapi/proxy/ppapi_messages.h" | 8 #include "ppapi/proxy/ppapi_messages.h" | 
| 8 | 9 | 
| 9 namespace ppapi { | 10 namespace ppapi { | 
| 10 namespace proxy { | 11 namespace proxy { | 
| 11 | 12 | 
| 12 TalkResource::TalkResource(Connection connection, PP_Instance instance) | 13 TalkResource::TalkResource(Connection connection, PP_Instance instance) | 
| 13     : PluginResource(connection, instance), | 14     : PluginResource(connection, instance), | 
| 14       event_callback_(NULL), | 15       event_callback_(NULL), | 
| 15       event_callback_user_data_(NULL) { | 16       event_callback_user_data_(NULL) { | 
| 16   SendCreate(BROWSER, PpapiHostMsg_Talk_Create()); | 17   SendCreate(BROWSER, PpapiHostMsg_Talk_Create()); | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 104 | 105 | 
| 105 void TalkResource::OnStopRemotingReply( | 106 void TalkResource::OnStopRemotingReply( | 
| 106     const ResourceMessageReplyParams& params) { | 107     const ResourceMessageReplyParams& params) { | 
| 107   event_callback_ = NULL; | 108   event_callback_ = NULL; | 
| 108   event_callback_user_data_ = NULL; | 109   event_callback_user_data_ = NULL; | 
| 109   stop_callback_->Run(params.result()); | 110   stop_callback_->Run(params.result()); | 
| 110 } | 111 } | 
| 111 | 112 | 
| 112 }  // namespace proxy | 113 }  // namespace proxy | 
| 113 }  // namespace ppapi | 114 }  // namespace ppapi | 
| OLD | NEW | 
|---|