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

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

Issue 6905088: New thunk system for Pepper proxy and implementation (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « ppapi/proxy/plugin_resource.h ('k') | ppapi/proxy/plugin_resource_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 namespace pp { 7 namespace pp {
8 namespace proxy { 8 namespace proxy {
9 9
10 PluginResource::PluginResource(const HostResource& resource) 10 PluginResource::PluginResource(const HostResource& resource)
11 : host_resource_(resource) { 11 : host_resource_(resource) {
12 } 12 }
13 13
14 PluginResource::~PluginResource() { 14 PluginResource::~PluginResource() {
15 } 15 }
16 16
17 #define DEFINE_TYPE_GETTER(RESOURCE) \ 17 #define DEFINE_TYPE_GETTER(RESOURCE) \
18 RESOURCE* PluginResource::As##RESOURCE() { return NULL; } 18 RESOURCE* PluginResource::As##RESOURCE() { return NULL; }
19 FOR_ALL_PLUGIN_RESOURCES(DEFINE_TYPE_GETTER) 19 FOR_ALL_PLUGIN_RESOURCES(DEFINE_TYPE_GETTER)
20 #undef DEFINE_TYPE_GETTER 20 #undef DEFINE_TYPE_GETTER
21 21
22 PluginDispatcher* PluginResource::GetDispatcher() {
23 PluginDispatcher* disp = PluginDispatcher::GetForInstance(instance());
24 CHECK(disp);
25 return disp;
26 }
27
22 } // namespace proxy 28 } // namespace proxy
23 } // namespace pp 29 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource.h ('k') | ppapi/proxy/plugin_resource_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698