| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 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 #include "webkit/plugins/ppapi/ppb_talk_private_impl.h" |
| 6 |
| 7 #include "ppapi/c/private/ppb_talk_private.h" |
| 8 #include "webkit/plugins/ppapi/host_globals.h" |
| 9 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 10 |
| 11 using ppapi::thunk::PPB_Talk_Private_API; |
| 12 |
| 13 namespace webkit { |
| 14 namespace ppapi { |
| 15 |
| 16 PPB_Talk_Private_Impl::PPB_Talk_Private_Impl(PP_Instance instance) |
| 17 : ::ppapi::Resource(::ppapi::OBJECT_IS_IMPL, instance) { |
| 18 } |
| 19 |
| 20 PPB_Talk_Private_Impl::~PPB_Talk_Private_Impl() { |
| 21 } |
| 22 |
| 23 int32_t PPB_Talk_Private_Impl::GetPermission( |
| 24 const PP_CompletionCallback& callback) { |
| 25 // Not implemented on the host side. |
| 26 NOTREACHED(); |
| 27 return PP_ERROR_FAILED; |
| 28 } |
| 29 |
| 30 int PPB_Talk_Private_Impl::GetRendererId() { |
| 31 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance()); |
| 32 if (instance) |
| 33 return instance->delegate()->GetRendererId(); |
| 34 return 0; |
| 35 } |
| 36 |
| 37 } // namespace ppapi |
| 38 } // namespace webkit |
| OLD | NEW |