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

Unified Diff: net/base/mime_sniffer.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
Index: net/base/mime_sniffer.h
===================================================================
--- net/base/mime_sniffer.h (revision 95949)
+++ net/base/mime_sniffer.h (working copy)
@@ -8,7 +8,7 @@
#include <string>
-#include "net/base/net_api.h"
+#include "net/base/net_export.h"
class GURL;
@@ -26,7 +26,8 @@
// @param url The URL from which we obtained the content.
// @param mime_type The current mime type, e.g. from the Content-Type header.
// @return Returns true if we should sniff the mime type.
-NET_API bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type);
+NET_EXPORT bool ShouldSniffMimeType(const GURL& url,
+ const std::string& mime_type);
// Guess a mime type from the first few bytes of content an its URL. Always
// assigns |result| with its best guess of a mime type.
@@ -37,9 +38,9 @@
// @param type_hint The current mime type, e.g. from the Content-Type header.
// @param result Address at which to place the sniffed mime type.
// @return Returns true if we have enough content to guess the mime type.
-NET_API bool SniffMimeType(const char* content, size_t content_size,
- const GURL& url, const std::string& type_hint,
- std::string* result);
+NET_EXPORT bool SniffMimeType(const char* content, size_t content_size,
+ const GURL& url, const std::string& type_hint,
+ std::string* result);
} // namespace net
« no previous file with comments | « net/base/mapped_host_resolver.h ('k') | net/base/mime_util.h » ('j') | net/base/net_export.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698