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

Unified Diff: content/common/content_export.h

Issue 7482022: Update content_api to match naming conventions, style in ui_api.h (Closed)
Patch Set: rename content_api.h to content_export.h Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/content_api.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_export.h
diff --git a/content/common/content_export.h b/content/common/content_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..357b732492acb750964a4c7b33512fa9e4be5c4f
--- /dev/null
+++ b/content/common/content_export.h
@@ -0,0 +1,28 @@
+// 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_API_H_
darin (slow to review) 2011/08/16 17:22:27 nit: please fix the include guard
+#define CONTENT_COMMON_CONTENT_API_H_
+#pragma once
+
+// Defines CONTENT_EXPORT so that funtionality implemented by the content module
+// can be exported to consumers.
darin (slow to review) 2011/08/16 17:22:27 nit: new line after this comment block, or just de
+#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_API_H_
« no previous file with comments | « content/common/content_api.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698