| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/plugin_resource.h" | 5 #include "ppapi/proxy/plugin_resource.h" |
| 6 | 6 |
| 7 using ppapi::HostResource; |
| 8 |
| 7 namespace pp { | 9 namespace pp { |
| 8 namespace proxy { | 10 namespace proxy { |
| 9 | 11 |
| 10 PluginResource::PluginResource(const HostResource& resource) | 12 PluginResource::PluginResource(const HostResource& resource) |
| 11 : ResourceObjectBase(resource.instance()), | 13 : ResourceObjectBase(resource.instance()), |
| 12 host_resource_(resource) { | 14 host_resource_(resource) { |
| 13 } | 15 } |
| 14 | 16 |
| 15 PluginResource::~PluginResource() { | 17 PluginResource::~PluginResource() { |
| 16 } | 18 } |
| 17 | 19 |
| 18 PluginDispatcher* PluginResource::GetDispatcher() { | 20 PluginDispatcher* PluginResource::GetDispatcher() { |
| 19 PluginDispatcher* disp = PluginDispatcher::GetForInstance(instance()); | 21 PluginDispatcher* disp = PluginDispatcher::GetForInstance(instance()); |
| 20 CHECK(disp); | 22 CHECK(disp); |
| 21 return disp; | 23 return disp; |
| 22 } | 24 } |
| 23 | 25 |
| 24 } // namespace proxy | 26 } // namespace proxy |
| 25 } // namespace pp | 27 } // namespace pp |
| OLD | NEW |