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

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

Issue 303223007: [NaCl SDK] nacl_io: Run clang-format over nacl_io sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
index 6a4815be8d79483c573e37881a6e4d1e5c14d82f..394252e32d9f603a2b425f4df2f63acaa5accc81 100644
--- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
@@ -152,7 +152,9 @@ void HttpFsNode::SetCachedSize(off_t size) {
stat_.st_size = size;
}
-Error HttpFsNode::FSync() { return EACCES; }
+Error HttpFsNode::FSync() {
+ return EACCES;
+}
Error HttpFsNode::GetDents(size_t offs,
struct dirent* pdir,
@@ -187,7 +189,9 @@ Error HttpFsNode::Read(const HandleAttr& attr,
return DownloadPartial(attr, buf, count, out_bytes);
}
-Error HttpFsNode::FTruncate(off_t size) { return EACCES; }
+Error HttpFsNode::FTruncate(off_t size) {
+ return EACCES;
+}
Error HttpFsNode::Write(const HandleAttr& attr,
const void* buf,
@@ -219,9 +223,12 @@ HttpFsNode::HttpFsNode(Filesystem* filesystem,
: Node(filesystem),
url_(url),
cache_content_(cache_content),
- has_cached_size_(false) {}
+ has_cached_size_(false) {
+}
-void HttpFsNode::SetMode(int mode) { stat_.st_mode = mode; }
+void HttpFsNode::SetMode(int mode) {
+ stat_.st_mode = mode;
+}
Error HttpFsNode::GetStat_Locked(struct stat* stat) {
// Assume we need to 'HEAD' if we do not know the size, otherwise, assume
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc ('k') | native_client_sdk/src/libraries/nacl_io/include/sys/mount.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698