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

Unified Diff: net/base/net_log.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/net_log.h
===================================================================
--- net/base/net_log.h (revision 95949)
+++ net/base/net_log.h (working copy)
@@ -11,7 +11,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
-#include "net/base/net_api.h"
+#include "net/base/net_export.h"
namespace base {
class Value;
@@ -32,7 +32,7 @@
// is usually accessed through a BoundNetLog, which will always pass in a
// specific source ID.
//
-class NET_API NetLog {
+class NET_EXPORT NetLog {
public:
enum EventType {
#define EVENT_TYPE(label) TYPE_ ## label,
@@ -58,7 +58,7 @@
// Identifies the entity that generated this log. The |id| field should
// uniquely identify the source, and is used by log observers to infer
// message groupings. Can use NetLog::NextID() to create unique IDs.
- struct NET_API Source {
+ struct NET_EXPORT Source {
static const uint32 kInvalidId = 0;
Source() : type(SOURCE_NONE), id(kInvalidId) {}
@@ -75,7 +75,7 @@
// Base class for associating additional parameters with an event. Log
// observers need to know what specific derivations of EventParameters a
// particular EventType uses, in order to get at the individual components.
- class NET_API EventParameters
+ class NET_EXPORT EventParameters
: public base::RefCountedThreadSafe<EventParameters> {
public:
EventParameters() {}
@@ -106,7 +106,7 @@
// An observer, that must ensure its own thread safety, for events
// being added to a NetLog.
- class NET_API ThreadSafeObserver {
+ class NET_EXPORT ThreadSafeObserver {
public:
// Constructs an observer that wants to see network events, with
// the specified minimum event granularity. A ThreadSafeObserver can only
@@ -213,7 +213,7 @@
// Helper that binds a Source to a NetLog, and exposes convenience methods to
// output log messages without needing to pass in the source.
-class NET_API BoundNetLog {
+class NET_EXPORT BoundNetLog {
public:
BoundNetLog() : net_log_(NULL) {}
@@ -315,7 +315,7 @@
// NetLogSourceParameter is a subclass of EventParameters that encapsulates a
// single NetLog::Source parameter.
-class NET_API NetLogSourceParameter : public NetLog::EventParameters {
+class NET_EXPORT NetLogSourceParameter : public NetLog::EventParameters {
public:
// |name| must be a string literal.
NetLogSourceParameter(const char* name, const NetLog::Source& value)
@@ -334,7 +334,7 @@
// ScopedNetLogEvent logs a begin event on creation, and the corresponding end
// event on destruction.
-class NET_TEST ScopedNetLogEvent {
+class NET_EXPORT_PRIVATE ScopedNetLogEvent {
public:
ScopedNetLogEvent(const BoundNetLog& net_log,
NetLog::EventType event_type,

Powered by Google App Engine
This is Rietveld 408576698