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

Unified Diff: net/base/io_buffer.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/io_buffer.h
===================================================================
--- net/base/io_buffer.h (revision 85332)
+++ net/base/io_buffer.h (working copy)
@@ -11,12 +11,13 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/pickle.h"
+#include "net/base/net_api.h"
namespace net {
// This is a simple wrapper around a buffer that provides ref counting for
// easier asynchronous IO handling.
-class IOBuffer : public base::RefCountedThreadSafe<IOBuffer> {
+class NET_API IOBuffer : public base::RefCountedThreadSafe<IOBuffer> {
public:
IOBuffer();
explicit IOBuffer(int buffer_size);
@@ -39,7 +40,7 @@
// doesn't have to keep track of that value.
// NOTE: This doesn't mean that we want to stop sending the size as an explicit
// argument to IO functions. Please keep using IOBuffer* for API declarations.
-class IOBufferWithSize : public IOBuffer {
+class NET_API IOBufferWithSize : public IOBuffer {
public:
explicit IOBufferWithSize(int size);
@@ -53,7 +54,7 @@
// This is a read only IOBuffer. The data is stored in a string and
// the IOBuffer interface does not provide a proper way to modify it.
-class StringIOBuffer : public IOBuffer {
+class NET_API StringIOBuffer : public IOBuffer {
public:
explicit StringIOBuffer(const std::string& s);
@@ -67,7 +68,7 @@
// This version wraps an existing IOBuffer and provides convenient functions
// to progressively read all the data.
-class DrainableIOBuffer : public IOBuffer {
+class NET_API DrainableIOBuffer : public IOBuffer {
public:
DrainableIOBuffer(IOBuffer* base, int size);
@@ -96,7 +97,7 @@
};
// This version provides a resizable buffer and a changeable offset.
-class GrowableIOBuffer : public IOBuffer {
+class NET_API GrowableIOBuffer : public IOBuffer {
public:
GrowableIOBuffer();
@@ -121,7 +122,7 @@
// This versions allows a pickle to be used as the storage for a write-style
// operation, avoiding an extra data copy.
-class PickledIOBuffer : public IOBuffer {
+class NET_API PickledIOBuffer : public IOBuffer {
public:
PickledIOBuffer();
@@ -142,7 +143,7 @@
// A good example is the buffer for a synchronous operation, where we can be
// sure that nobody is keeping an extra reference to this object so the lifetime
// of the buffer can be completely managed by its intended owner.
-class WrappedIOBuffer : public IOBuffer {
+class NET_API WrappedIOBuffer : public IOBuffer {
public:
explicit WrappedIOBuffer(const char* data);

Powered by Google App Engine
This is Rietveld 408576698