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

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

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | mojo/services/files/c/lib/file_fd_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 #ifndef SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ 5 #ifndef SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_
6 #define SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ 6 #define SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "files/c/mojio_sys_types.h" 10 #include "files/c/mojio_sys_types.h"
11 #include "files/interfaces/directory.mojom-sync.h" 11 #include "files/interfaces/directory.mojom-sync.h"
12 #include "files/interfaces/directory.mojom.h" 12 #include "files/interfaces/directory.mojom.h"
13 #include "mojo/public/c/system/macros.h"
14 #include "mojo/public/cpp/bindings/interface_handle.h" 13 #include "mojo/public/cpp/bindings/interface_handle.h"
15 #include "mojo/public/cpp/bindings/synchronous_interface_ptr.h" 14 #include "mojo/public/cpp/bindings/synchronous_interface_ptr.h"
15 #include "mojo/public/cpp/system/macros.h"
16 16
17 namespace mojio { 17 namespace mojio {
18 18
19 class ErrnoImpl; 19 class ErrnoImpl;
20 class FDImpl; 20 class FDImpl;
21 21
22 // TODO(vtl): Probably this should be made into an implementation of |FDImpl| 22 // TODO(vtl): Probably this should be made into an implementation of |FDImpl|
23 // (with additional methods) and renamed |DirectoryFDImpl|, to support opening 23 // (with additional methods) and renamed |DirectoryFDImpl|, to support opening
24 // directories, |openat()|, etc. 24 // directories, |openat()|, etc.
25 class DirectoryWrapper { 25 class DirectoryWrapper {
(...skipping 15 matching lines...) Expand all
41 private: 41 private:
42 ErrnoImpl* const errno_impl_; 42 ErrnoImpl* const errno_impl_;
43 mojo::SynchronousInterfacePtr<mojo::files::Directory> directory_; 43 mojo::SynchronousInterfacePtr<mojo::files::Directory> directory_;
44 44
45 MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper); 45 MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper);
46 }; 46 };
47 47
48 } // namespace mojio 48 } // namespace mojio
49 49
50 #endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ 50 #endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | mojo/services/files/c/lib/file_fd_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698