Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: ppapi/proxy/plugin_resource.cc

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698