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

Side by Side Diff: components/filesystem/shared_impl.h

Issue 1147083002: mandoline: Fork the files service from the mojo repository. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I think the problem was in the mandoline build.gn Created 5 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 unified diff | Download patch
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 "components/filesystem/public/interfaces/types.mojom.h"
12 #include "mojo/public/cpp/bindings/callback.h"
13
14 namespace mojo {
15 namespace files {
16
17 // Stats the given FD (which must be valid), calling |callback| appropriately.
18 // The type in the |FileInformation| given to the callback will be assigned from
19 // |type|.
20 using StatFDCallback = Callback<void(Error, FileInformationPtr)>;
21 void StatFD(int fd, FileType type, const StatFDCallback& callback);
22
23 // Touches the given FD (which must be valid), calling |callback| appropriately.
24 using TouchFDCallback = Callback<void(Error)>;
25 void TouchFD(int fd,
26 TimespecOrNowPtr atime,
27 TimespecOrNowPtr mtime,
28 const TouchFDCallback& callback);
29
30 } // namespace files
31 } // namespace mojo
32
33 #endif // SERVICES_FILES_SHARED_IMPL_H_
OLDNEW
« no previous file with comments | « components/filesystem/public/interfaces/types.mojom ('k') | components/filesystem/shared_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698