summaryrefslogtreecommitdiffstats
path: root/ppapi/host/ppapi_host_export.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-30 05:26:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-30 05:26:52 +0000
commit4dec5802baac225df48fb9153d2af7621d5850e6 (patch)
treecc52ebc1c7171654b9bdbc6b394fa2c8df1ff059 /ppapi/host/ppapi_host_export.h
parent250c074059ca38cbc7474d3332ba3edcf8e86e65 (diff)
downloadchromium_src-4dec5802baac225df48fb9153d2af7621d5850e6.zip
chromium_src-4dec5802baac225df48fb9153d2af7621d5850e6.tar.gz
chromium_src-4dec5802baac225df48fb9153d2af7621d5850e6.tar.bz2
Create a PPAPI host for new resource message routing.
This infrastructure will be used in the renderer and in the browser as the backing for new resources. The PpapiHost object doues the routing for the resource messages, and also has hooks for the embedder (the renderer or the browser) to create resources. This adds a content_renderer factory which currently does nothing (we'll add most of the resources here). BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10572040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/host/ppapi_host_export.h')
-rw-r--r--ppapi/host/ppapi_host_export.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ppapi/host/ppapi_host_export.h b/ppapi/host/ppapi_host_export.h
new file mode 100644
index 0000000..90cf2ef
--- /dev/null
+++ b/ppapi/host/ppapi_host_export.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 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.
+
+#ifndef PPAPI_HOST_PPAPI_HOST_EXPORT_H_
+#define PPAPI_HOST_PPAPI_HOST_EXPORT_H_
+#pragma once
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(PPAPI_HOST_IMPLEMENTATION)
+#define PPAPI_HOST_EXPORT __declspec(dllexport)
+#else
+#define PPAPI_HOST_EXPORT __declspec(dllimport)
+#endif // defined(PPAPI_HOST_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(PPAPI_HOST_IMPLEMENTATION)
+#define PPAPI_HOST_EXPORT __attribute__((visibility("default")))
+#else
+#define PPAPI_HOST_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define PPAPI_HOST_EXPORT
+#endif
+
+#endif // PPAPI_HOST_PPAPI_HOST_EXPORT_H_