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

Unified Diff: components/webdata_services/webdata_services_export.h

Issue 777863002: Introduce new component webdata_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary DEPS on //ui, sort dependencies Created 6 years 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
Index: components/webdata_services/webdata_services_export.h
diff --git a/components/webdata_services/webdata_services_export.h b/components/webdata_services/webdata_services_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..2742370c8208455f3a0432907474fb34bba7d01d
--- /dev/null
+++ b/components/webdata_services/webdata_services_export.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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 COMPONENTS_WEBDATA_SERVICES_WEBDATA_SERVICES_EXPORT_H_
+#define COMPONENTS_WEBDATA_SERVICES_WEBDATA_SERVICES_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(WEBDATA_SERVICES_IMPLEMENTATION)
+#define WEBDATA_SERVICES_EXPORT __declspec(dllexport)
+#else
+#define WEBDATA_SERVICES_EXPORT __declspec(dllimport)
+#endif // defined(WEBDATA_IMPLEMENTATION)
Peter Kasting 2014/12/05 21:47:56 This comment doesn't match the actual #if above
sdefresne 2014/12/08 10:54:42 Done.
+
+#else // defined(WIN32)
Peter Kasting 2014/12/05 21:47:56 Nit: Unlike comments on the endif, I think comment
sdefresne 2014/12/08 10:54:42 Done.
+#if defined(WEBDATA_SERVICES_IMPLEMENTATION)
+#define WEBDATA_SERVICES_EXPORT __attribute__((visibility("default")))
+#else
+#define WEBDATA_SERVICES_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define WEBDATA_SERVICES_EXPORT
+#endif
+
+#endif // COMPONENTS_WEBDATA_SERVICES_WEBDATA_SERVICES_EXPORT_H_

Powered by Google App Engine
This is Rietveld 408576698