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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/files/files_apptest.cc ('k') | services/files/shared_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/shared_impl.h
diff --git a/services/files/shared_impl.h b/services/files/shared_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..2966c2986c394b1f192f6b0b08abebe6ab6c1973
--- /dev/null
+++ b/services/files/shared_impl.h
@@ -0,0 +1,29 @@
+// 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 "mojo/public/cpp/bindings/callback.h"
+#include "services/files/types.mojom.h"
+
+namespace mojo {
+namespace files {
+
+// Stats the given FD (which must be valid), calling |callback| appropriately.
+void StatFD(int fd, const Callback<void(Error, FileInformationPtr)>& callback);
+
+// Touches the given FD (which must be valid), calling |callback| appropriately.
+void TouchFD(int fd,
+ TimespecOrNowPtr atime,
+ TimespecOrNowPtr mtime,
+ const Callback<void(Error)>& callback);
+
+} // namespace files
+} // namespace mojo
+
+#endif // SERVICES_FILES_SHARED_IMPL_H_
« 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