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_proxy_impl.h" |
| 6 |
| 7 #include "ppapi/c/private/ppb_proxy_private.h" |
| 8 #include "webkit/plugins/ppapi/plugin_module.h" |
| 9 #include "webkit/plugins/ppapi/resource_tracker.h" |
| 10 |
| 11 namespace webkit { |
| 12 namespace ppapi { |
| 13 |
| 14 namespace { |
| 15 |
| 16 void PluginCrashed(PP_Module module) { |
| 17 PluginModule* plugin_module = ResourceTracker::Get()->GetModule(module); |
| 18 if (plugin_module) |
| 19 plugin_module->PluginCrashed(); |
| 20 } |
| 21 |
| 22 const PPB_Proxy_Private ppb_proxy = { |
| 23 &PluginCrashed |
| 24 }; |
| 25 |
| 26 } // namespace |
| 27 |
| 28 // static |
| 29 const PPB_Proxy_Private* PPB_Proxy_Impl::GetInterface() { |
| 30 return &ppb_proxy; |
| 31 } |
| 32 |
| 33 } // namespace ppapi |
| 34 } // namespace webkit |
OLD | NEW |