diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 23:55:25 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 23:55:25 +0000 |
commit | 2b92bd5a27606e41358eb7e4e08290b981161d70 (patch) | |
tree | c26b0ada88d467dd78d20cc9585312039b1b43e0 /base | |
parent | 70da41462b30ad99d53be6c38fc42ed7235d1b96 (diff) | |
download | chromium_src-2b92bd5a27606e41358eb7e4e08290b981161d70.zip chromium_src-2b92bd5a27606e41358eb7e4e08290b981161d70.tar.gz chromium_src-2b92bd5a27606e41358eb7e4e08290b981161d70.tar.bz2 |
linux: successfully build net_unittests in components build
Just tagging more bits of base API.
Review URL: http://codereview.chromium.org/6902169
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/environment.h | 2 | ||||
-rw-r--r-- | base/mime_util.h | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/base/environment.h b/base/environment.h index cf71724..9d2a662 100644 --- a/base/environment.h +++ b/base/environment.h @@ -16,7 +16,7 @@ namespace base { namespace env_vars { #if defined(OS_POSIX) -extern const char kHome[]; +BASE_API extern const char kHome[]; #endif } // namespace env_vars diff --git a/base/mime_util.h b/base/mime_util.h index 6212b31..0348811 100644 --- a/base/mime_util.h +++ b/base/mime_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// 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. @@ -8,6 +8,8 @@ #include <string> +#include "base/base_api.h" + class FilePath; namespace mime_util { @@ -16,23 +18,23 @@ namespace mime_util { // have to exist. Please note because it doesn't touch the disk, this does not // work for directories. // If the mime type is unknown, this will return application/octet-stream. -std::string GetFileMimeType(const FilePath& filepath); +BASE_API std::string GetFileMimeType(const FilePath& filepath); // Get the mime type for a byte vector. -std::string GetDataMimeType(const std::string& data); +BASE_API std::string GetDataMimeType(const std::string& data); #if defined(TOOLKIT_GTK) // This detects the current GTK theme by calling gtk_settings_get_default(). // It should only be executed on the UI thread and must be called before // GetMimeIcon(). -void DetectGtkTheme(); +BASE_API void DetectGtkTheme(); #endif // Gets the file name for an icon given the mime type and icon pixel size. // Where an icon is a square image of |size| x |size|. // This will try to find the closest matching icon. If that's not available, // then a generic icon, and finally an empty FilePath if all else fails. -FilePath GetMimeIcon(const std::string& mime_type, size_t size); +BASE_API FilePath GetMimeIcon(const std::string& mime_type, size_t size); } // namespace mime_util |