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

Unified Diff: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h

Issue 269593011: [NaCl SDK] Modifying size_t and int to off_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Place __STDC_FORMAT_MACROS inside conditional block Created 6 years, 8 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: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h
diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h
index d63ce0b3a4a3f93cbd06a18afb904a23a18cc00d..a779995edae883d97285ee63a2f85e8416d94130 100644
--- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h
+++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h
@@ -34,7 +34,7 @@ class HttpFsNode : public Node {
const void* buf,
size_t count,
int* out_bytes);
- virtual Error GetSize(size_t* out_size);
+ virtual Error GetSize(off_t* out_size);
void SetCachedSize(off_t size);
void SetMode(int mode);
@@ -61,13 +61,14 @@ class HttpFsNode : public Node {
int* out_bytes);
Error DownloadPartial(const HandleAttr& attr,
void* buf,
- size_t count,
+ off_t count,
int* out_bytes);
- Error DownloadToTemp(int* out_bytes);
+ Error DownloadToTemp(off_t* out_bytes);
// Read as much as possible from |loader|, using |buffer_| as a scratch area.
- Error ReadEntireResponseToTemp(const ScopedResource& loader, int* out_bytes);
+ Error ReadEntireResponseToTemp(const ScopedResource& loader,
+ off_t* out_bytes);
// Read as much as possible from |loader|, storing the result in
// |cached_data_|.
Error ReadEntireResponseToCache(const ScopedResource& loader, int* out_bytes);

Powered by Google App Engine
This is Rietveld 408576698