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

Side by Side Diff: services/files/shared_impl.h

Issue 963093004: Files: Add basic implementation of Directory and some basic tests. (Closed) Base URL: https://github.com/domokit/mojo.git@file_man
Patch Set: oops Created 5 years, 9 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 | « services/files/files_apptest.cc ('k') | services/files/shared_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Shared implementation of things common between |DirectoryImpl| and
6 // |FileImpl|.
7
8 #ifndef SERVICES_FILES_SHARED_IMPL_H_
9 #define SERVICES_FILES_SHARED_IMPL_H_
10
11 #include "mojo/public/cpp/bindings/callback.h"
12 #include "services/files/types.mojom.h"
13
14 namespace mojo {
15 namespace files {
16
17 // Stats the given FD (which must be valid), calling |callback| appropriately.
18 void StatFD(int fd, const Callback<void(Error, FileInformationPtr)>& callback);
19
20 // Touches the given FD (which must be valid), calling |callback| appropriately.
21 void TouchFD(int fd,
22 TimespecOrNowPtr atime,
23 TimespecOrNowPtr mtime,
24 const Callback<void(Error)>& callback);
25
26 } // namespace files
27 } // namespace mojo
28
29 #endif // SERVICES_FILES_SHARED_IMPL_H_
OLDNEW
« no previous file with comments | « services/files/files_apptest.cc ('k') | services/files/shared_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698