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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/stream/stream_fs.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, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "nacl_io/stream/stream_fs.h" 5 #include "nacl_io/stream/stream_fs.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "nacl_io/ossocket.h" 9 #include "nacl_io/ossocket.h"
10 #include "nacl_io/pepper_interface.h" 10 #include "nacl_io/pepper_interface.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 StreamFs::~StreamFs() { 79 StreamFs::~StreamFs() {
80 if (message_loop_) { 80 if (message_loop_) {
81 ppapi_->GetMessageLoopInterface()->PostQuit(message_loop_, PP_TRUE); 81 ppapi_->GetMessageLoopInterface()->PostQuit(message_loop_, PP_TRUE);
82 ppapi_->ReleaseResource(message_loop_); 82 ppapi_->ReleaseResource(message_loop_);
83 } 83 }
84 pthread_cond_destroy(&message_cond_); 84 pthread_cond_destroy(&message_cond_);
85 } 85 }
86 86
87 Error StreamFs::Access(const Path& path, int a_mode) { return EACCES; } 87 Error StreamFs::Access(const Path& path, int a_mode) {
88 return EACCES;
89 }
88 90
89 Error StreamFs::Open(const Path& path, int o_flags, ScopedNode* out_node) { 91 Error StreamFs::Open(const Path& path, int o_flags, ScopedNode* out_node) {
90 return EACCES; 92 return EACCES;
91 } 93 }
92 94
93 Error StreamFs::Unlink(const Path& path) { return EACCES; } 95 Error StreamFs::Unlink(const Path& path) {
96 return EACCES;
97 }
94 98
95 Error StreamFs::Mkdir(const Path& path, int permissions) { return EACCES; } 99 Error StreamFs::Mkdir(const Path& path, int permissions) {
100 return EACCES;
101 }
96 102
97 Error StreamFs::Rmdir(const Path& path) { return EACCES; } 103 Error StreamFs::Rmdir(const Path& path) {
104 return EACCES;
105 }
98 106
99 Error StreamFs::Remove(const Path& path) { return EACCES; } 107 Error StreamFs::Remove(const Path& path) {
108 return EACCES;
109 }
100 110
101 Error StreamFs::Rename(const Path& path, const Path& newpath) { return EACCES; } 111 Error StreamFs::Rename(const Path& path, const Path& newpath) {
112 return EACCES;
113 }
102 114
103 } // namespace nacl_io 115 } // namespace nacl_io
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698