diff options
author | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-22 12:44:41 +0000 |
---|---|---|
committer | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-22 12:44:41 +0000 |
commit | 1b6888ad29c5bc31fa3faff3aaa27008af1e7c4a (patch) | |
tree | 686154ebd3f55ad1a39fdcabfa342942b8d6c5c2 /components/wifi/wifi_export.h | |
parent | 1385954a60937c198519acc45c04242adb4123e5 (diff) | |
download | chromium_src-1b6888ad29c5bc31fa3faff3aaa27008af1e7c4a.zip chromium_src-1b6888ad29c5bc31fa3faff3aaa27008af1e7c4a.tar.gz chromium_src-1b6888ad29c5bc31fa3faff3aaa27008af1e7c4a.tar.bz2 |
Base infrastructure for Networking Private API on Windows and Mac.
Based on https://codereview.chromium.org/22295002/,
but moves WiFiService to components/ and runs it in browser process instead of utility process.
Windows implementation is in http://crrev.com/68503019.
BUG=267667
Review URL: https://codereview.chromium.org/54323003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/wifi/wifi_export.h')
-rw-r--r-- | components/wifi/wifi_export.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/components/wifi/wifi_export.h b/components/wifi/wifi_export.h new file mode 100644 index 0000000..50c8676 --- /dev/null +++ b/components/wifi/wifi_export.h @@ -0,0 +1,29 @@ +// Copyright 2013 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_WIFI_WIFI_EXPORT_H_ +#define COMPONENTS_WIFI_WIFI_EXPORT_H_ + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(WIFI_IMPLEMENTATION) +#define WIFI_EXPORT __declspec(dllexport) +#else +#define WIFI_EXPORT __declspec(dllimport) +#endif // defined(WIFI_IMPLEMENTATION) + +#else // defined(WIN32) +#if defined(WIFI_IMPLEMENTATION) +#define WIFI_EXPORT __attribute__((visibility("default"))) +#else +#define WIFI_EXPORT +#endif +#endif + +#else // defined(COMPONENT_BUILD) +#define WIFI_EXPORT +#endif + +#endif // COMPONENTS_WIFI_WIFI_EXPORT_H_ |