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

Unified Diff: net/base/net_log.h

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 85332)
+++ net/base/net_log.h (working copy)
@@ -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 @@
// 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 @@
// 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 @@
// 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 @@
// 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 @@
// ScopedNetLogEvent logs a begin event on creation, and the corresponding end
// event on destruction.
-class ScopedNetLogEvent {
+class NET_TEST ScopedNetLogEvent {
wtc 2011/05/16 20:55:17 This kind of scoped class seems useful, so probabl
rvargas (doing something else) 2011/05/16 22:41:56 The point is that nobody out of net uses this toda
public:
ScopedNetLogEvent(const BoundNetLog& net_log,
NetLog::EventType event_type,

Powered by Google App Engine
This is Rietveld 408576698