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