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

Side by Side Diff: mojo/services/files/c/lib/directory_wrapper.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « mojo/services/files/c/lib/directory_wrapper.h ('k') | mojo/services/files/c/lib/errno_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "files/public/c/lib/directory_wrapper.h" 5 #include "files/c/lib/directory_wrapper.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "files/public/c/lib/errno_impl.h" 9 #include "files/c/lib/errno_impl.h"
10 #include "files/public/c/lib/file_fd_impl.h" 10 #include "files/c/lib/file_fd_impl.h"
11 #include "files/public/c/lib/template_util.h" 11 #include "files/c/lib/template_util.h"
12 #include "files/public/c/lib/util.h" 12 #include "files/c/lib/util.h"
13 #include "files/public/c/mojio_fcntl.h" 13 #include "files/c/mojio_fcntl.h"
14 #include "files/public/interfaces/file.mojom.h" 14 #include "files/interfaces/file.mojom.h"
15 #include "files/public/interfaces/types.mojom.h" 15 #include "files/interfaces/types.mojom.h"
16 #include "mojo/public/cpp/bindings/interface_request.h" 16 #include "mojo/public/cpp/bindings/interface_request.h"
17 #include "mojo/public/cpp/environment/logging.h" 17 #include "mojo/public/cpp/environment/logging.h"
18 18
19 namespace mojio { 19 namespace mojio {
20 20
21 DirectoryWrapper::DirectoryWrapper(ErrnoImpl* errno_impl, 21 DirectoryWrapper::DirectoryWrapper(ErrnoImpl* errno_impl,
22 mojo::files::DirectoryPtr directory) 22 mojo::files::DirectoryPtr directory)
23 : errno_impl_(errno_impl), directory_(directory.Pass()) { 23 : errno_impl_(errno_impl), directory_(directory.Pass()) {
24 MOJO_DCHECK(directory_); 24 MOJO_DCHECK(directory_);
25 } 25 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // stale, which may be a little strange. 103 // stale, which may be a little strange.
104 return errno_setter.Set(ESTALE); 104 return errno_setter.Set(ESTALE);
105 } 105 }
106 if (!errno_setter.Set(ErrorToErrno(error))) 106 if (!errno_setter.Set(ErrorToErrno(error)))
107 return false; 107 return false;
108 directory_ = new_directory.Pass(); 108 directory_ = new_directory.Pass();
109 return true; 109 return true;
110 } 110 }
111 111
112 } // namespace mojio 112 } // namespace mojio
OLDNEW
« no previous file with comments | « mojo/services/files/c/lib/directory_wrapper.h ('k') | mojo/services/files/c/lib/errno_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698