diff options
author | markdittmer <markdittmer@chromium.org> | 2016-03-02 14:41:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-02 22:43:55 +0000 |
commit | 45eb2e749a8b08988ab45bfd6806c004e9f511fa (patch) | |
tree | 0aecb6b3231864a85e6687f03aa5a534ba76f0cf /url/ipc/url_ipc_export.h | |
parent | c80d2b59c2357c6cae1dee9baef6fbaecb3c8136 (diff) | |
download | chromium_src-45eb2e749a8b08988ab45bfd6806c004e9f511fa.zip chromium_src-45eb2e749a8b08988ab45bfd6806c004e9f511fa.tar.gz chromium_src-45eb2e749a8b08988ab45bfd6806c004e9f511fa.tar.bz2 |
Move GURL ParamTraits to url/ipc
As a part of the GPU refactor for Mus, we are trying to eliminate spots where content/common/gpu depends on
content/. One such dependency is GURL. As per discussion here:
https://codereview.chromium.org/1703163002/, the plan of record is to move
GURL ParamTraits out of content/ and into url/.
BUG=586368
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1722773002
Cr-Commit-Position: refs/heads/master@{#378859}
Diffstat (limited to 'url/ipc/url_ipc_export.h')
-rw-r--r-- | url/ipc/url_ipc_export.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/url/ipc/url_ipc_export.h b/url/ipc/url_ipc_export.h new file mode 100644 index 0000000..1da0fa6 --- /dev/null +++ b/url/ipc/url_ipc_export.h @@ -0,0 +1,29 @@ +// Copyright 2016 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 URL_IPC_EXPORT_H_ +#define URL_IPC_EXPORT_H_ + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(URL_IPC_IMPLEMENTATION) +#define URL_IPC_EXPORT __declspec(dllexport) +#else +#define URL_IPC_EXPORT __declspec(dllimport) +#endif // defined(URL_IPC_IMPLEMENTATION) + +#else // defined(WIN32) +#if defined(URL_IPC_IMPLEMENTATION) +#define URL_IPC_EXPORT __attribute__((visibility("default"))) +#else +#define URL_IPC_EXPORT +#endif +#endif + +#else // defined(COMPONENT_BUILD) +#define URL_IPC_EXPORT +#endif + +#endif // URL_IPC_EXPORT_H_ |