blob: d25dde189479d6826fb00e4f938221c6e3a0ae80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/proxy/plugin_resource.h"
namespace pp {
namespace proxy {
PluginResource::PluginResource(const HostResource& resource)
: host_resource_(resource) {
}
PluginResource::~PluginResource() {
}
#define DEFINE_TYPE_GETTER(RESOURCE) \
RESOURCE* PluginResource::As##RESOURCE() { return NULL; }
FOR_ALL_PLUGIN_RESOURCES(DEFINE_TYPE_GETTER)
#undef DEFINE_TYPE_GETTER
PluginDispatcher* PluginResource::GetDispatcher() {
PluginDispatcher* disp = PluginDispatcher::GetForInstance(instance());
CHECK(disp);
return disp;
}
} // namespace proxy
} // namespace pp
|