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

Side by Side Diff: net/base/upload_data_stream.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_UPLOAD_DATA_STREAM_H_ 5 #ifndef NET_BASE_UPLOAD_DATA_STREAM_H_
6 #define NET_BASE_UPLOAD_DATA_STREAM_H_ 6 #define NET_BASE_UPLOAD_DATA_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_api.h" 10 #include "net/base/net_export.h"
11 #include "net/base/upload_data.h" 11 #include "net/base/upload_data.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class FileStream; 15 class FileStream;
16 class IOBuffer; 16 class IOBuffer;
17 17
18 class NET_API UploadDataStream { 18 class NET_EXPORT UploadDataStream {
19 public: 19 public:
20 ~UploadDataStream(); 20 ~UploadDataStream();
21 21
22 // Returns a new instance of UploadDataStream if it can be created and 22 // Returns a new instance of UploadDataStream if it can be created and
23 // initialized successfully. If not, NULL will be returned and the error 23 // initialized successfully. If not, NULL will be returned and the error
24 // code will be set if the output parameter error_code is not empty. 24 // code will be set if the output parameter error_code is not empty.
25 static UploadDataStream* Create(UploadData* data, int* error_code); 25 static UploadDataStream* Create(UploadData* data, int* error_code);
26 26
27 // Returns the stream's buffer and buffer length. 27 // Returns the stream's buffer and buffer length.
28 IOBuffer* buf() const { return buf_; } 28 IOBuffer* buf() const { return buf_; }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // TODO(satish): Remove this once we have a better way to unit test POST 112 // TODO(satish): Remove this once we have a better way to unit test POST
113 // requests with chunked uploads. 113 // requests with chunked uploads.
114 static bool merge_chunks_; 114 static bool merge_chunks_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(UploadDataStream); 116 DISALLOW_COPY_AND_ASSIGN(UploadDataStream);
117 }; 117 };
118 118
119 } // namespace net 119 } // namespace net
120 120
121 #endif // NET_BASE_UPLOAD_DATA_STREAM_H_ 121 #endif // NET_BASE_UPLOAD_DATA_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698