diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 18:29:36 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 18:29:36 +0000 |
commit | 13677b86fc97aeab327e476c7de42bc777a54ee4 (patch) | |
tree | 5e2682e91c0d09d63a6a54e36d9996fef5528e8d /net/base/net_log.h | |
parent | d929a9dfff856658662a962fd4dabed66d1e0b2f (diff) | |
download | chromium_src-13677b86fc97aeab327e476c7de42bc777a54ee4.zip chromium_src-13677b86fc97aeab327e476c7de42bc777a54ee4.tar.gz chromium_src-13677b86fc97aeab327e476c7de42bc777a54ee4.tar.bz2 |
net: Add NET_API to net/base
BUG=76997
TEST=NONE
Review URL: http://codereview.chromium.org/6969077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.h')
-rw-r--r-- | net/base/net_log.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/base/net_log.h b/net/base/net_log.h index 3df804a..584e0fa 100644 --- a/net/base/net_log.h +++ b/net/base/net_log.h @@ -11,6 +11,7 @@ #include "base/basictypes.h" #include "base/memory/ref_counted.h" +#include "net/base/net_api.h" class Value; @@ -35,7 +36,7 @@ namespace net { // TODO(eroman): Start a new Source each time URLRequest redirects // (simpler to reason about each as a separate entity). -class NetLog { +class NET_API NetLog { public: enum EventType { #define EVENT_TYPE(label) TYPE_ ## label, @@ -61,7 +62,7 @@ class NetLog { // 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 Source { + struct NET_API Source { static const uint32 kInvalidId = 0; Source() : type(SOURCE_NONE), id(kInvalidId) {} @@ -78,7 +79,8 @@ class NetLog { // 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 EventParameters : public base::RefCountedThreadSafe<EventParameters> { + class NET_API EventParameters + : public base::RefCountedThreadSafe<EventParameters> { public: EventParameters() {} virtual ~EventParameters() {} @@ -163,7 +165,7 @@ class NetLog { // Helper that binds a Source to a NetLog, and exposes convenience methods to // output log messages without needing to pass in the source. -class BoundNetLog { +class NET_API BoundNetLog { public: BoundNetLog() : net_log_(NULL) {} @@ -279,7 +281,7 @@ class NetLogSourceParameter : public NetLog::EventParameters { // ScopedNetLogEvent logs a begin event on creation, and the corresponding end // event on destruction. -class ScopedNetLogEvent { +class NET_TEST ScopedNetLogEvent { public: ScopedNetLogEvent(const BoundNetLog& net_log, NetLog::EventType event_type, |