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

Unified Diff: net/base/upload_data_stream.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/upload_data_stream.h
===================================================================
--- net/base/upload_data_stream.h (revision 85332)
+++ net/base/upload_data_stream.h (working copy)
@@ -7,6 +7,7 @@
#pragma once
#include "base/memory/scoped_ptr.h"
+#include "net/base/net_api.h"
#include "net/base/upload_data.h"
namespace net {
@@ -14,7 +15,7 @@
class FileStream;
class IOBuffer;
-class UploadDataStream {
+class NET_API UploadDataStream {
public:
~UploadDataStream();
@@ -62,9 +63,8 @@
// returns true only after the data in buf() has been consumed.
bool IsOnLastChunk() const;
-#if defined(UNIT_TEST)
+ // This method is provided only to be used by unit tests.
static void set_merge_chunks(bool merge) { merge_chunks_ = merge; }
-#endif
private:
enum { kBufSize = 16384 };
« base/compiler_specific.h ('K') | « net/base/upload_data.h ('k') | net/base/winsock_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698