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

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

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
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(PP_Instance instance) : instance_(instance) { 10 PluginResource::PluginResource(PP_Instance instance,
11 SerializedResource resource)
12 : instance_(instance),
13 host_resource_(resource) {
11 } 14 }
12 15
13 PluginResource::~PluginResource() { 16 PluginResource::~PluginResource() {
14 } 17 }
15 18
16 #define DEFINE_TYPE_GETTER(RESOURCE) \ 19 #define DEFINE_TYPE_GETTER(RESOURCE) \
17 RESOURCE* PluginResource::As##RESOURCE() { return NULL; } 20 RESOURCE* PluginResource::As##RESOURCE() { return NULL; }
18 FOR_ALL_PLUGIN_RESOURCES(DEFINE_TYPE_GETTER) 21 FOR_ALL_PLUGIN_RESOURCES(DEFINE_TYPE_GETTER)
19 #undef DEFINE_TYPE_GETTER 22 #undef DEFINE_TYPE_GETTER
20 23
21 } // namespace proxy 24 } // namespace proxy
22 } // namespace pp 25 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698