summaryrefslogtreecommitdiffstats
path: root/content/common/content_export.h
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 22:12:21 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 22:12:21 +0000
commit1ac7bbfd01b96709e44b6800668f0af034ffea0f (patch)
tree455108e10d05ad7cf0e90a696662c757b5453186 /content/common/content_export.h
parent0153ee6f2ebeb2a75177344ac0a6f1afe49a14b7 (diff)
downloadchromium_src-1ac7bbfd01b96709e44b6800668f0af034ffea0f.zip
chromium_src-1ac7bbfd01b96709e44b6800668f0af034ffea0f.tar.gz
chromium_src-1ac7bbfd01b96709e44b6800668f0af034ffea0f.tar.bz2
Update content_api to match naming conventions, style in ui_api.h, make work for linux build as well.
R=jam@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7482022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/content_export.h')
-rw-r--r--content/common/content_export.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/content/common/content_export.h b/content/common/content_export.h
new file mode 100644
index 0000000..c52377f
--- /dev/null
+++ b/content/common/content_export.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef CONTENT_COMMON_CONTENT_EXPORT_H_
+#define CONTENT_COMMON_CONTENT_EXPORT_H_
+#pragma once
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(CONTENT_IMPLEMENTATION)
+#define CONTENT_EXPORT __declspec(dllexport)
+#else
+#define CONTENT_EXPORT __declspec(dllimport)
+#endif // defined(CONTENT_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#define CONTENT_EXPORT __attribute__((visibility("default"))
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define CONTENT_EXPORT
+#endif
+
+#endif // CONTENT_COMMON_CONTENT_EXPORT_H_