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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/filesystem/public/interfaces/types.mojom ('k') | components/filesystem/shared_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/shared_impl.h
diff --git a/components/filesystem/shared_impl.h b/components/filesystem/shared_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..69073605fbcf0c77cd8852d4a2dde45f32c2493e
--- /dev/null
+++ b/components/filesystem/shared_impl.h
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Shared implementation of things common between |DirectoryImpl| and
+// |FileImpl|.
+
+#ifndef SERVICES_FILES_SHARED_IMPL_H_
+#define SERVICES_FILES_SHARED_IMPL_H_
+
+#include "components/filesystem/public/interfaces/types.mojom.h"
+#include "mojo/public/cpp/bindings/callback.h"
+
+namespace mojo {
+namespace files {
+
+// Stats the given FD (which must be valid), calling |callback| appropriately.
+// The type in the |FileInformation| given to the callback will be assigned from
+// |type|.
+using StatFDCallback = Callback<void(Error, FileInformationPtr)>;
+void StatFD(int fd, FileType type, const StatFDCallback& callback);
+
+// Touches the given FD (which must be valid), calling |callback| appropriately.
+using TouchFDCallback = Callback<void(Error)>;
+void TouchFD(int fd,
+ TimespecOrNowPtr atime,
+ TimespecOrNowPtr mtime,
+ const TouchFDCallback& callback);
+
+} // namespace files
+} // namespace mojo
+
+#endif // SERVICES_FILES_SHARED_IMPL_H_
« 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