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

Unified Diff: services/files/c/lib/directory_wrapper.h

Issue 1133933002: Move //services/files/c -> //mojo/services/files/public/c. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove data dep 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 | « services/files/c/BUILD.gn ('k') | services/files/c/lib/directory_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/c/lib/directory_wrapper.h
diff --git a/services/files/c/lib/directory_wrapper.h b/services/files/c/lib/directory_wrapper.h
deleted file mode 100644
index 812b0e746dd2277f36db7bb407dcaf60064f4c57..0000000000000000000000000000000000000000
--- a/services/files/c/lib/directory_wrapper.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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.
-
-#ifndef SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_
-#define SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_
-
-#include <memory>
-
-#include "mojo/public/c/system/macros.h"
-#include "mojo/services/files/public/interfaces/directory.mojom.h"
-#include "services/files/c/mojio_sys_types.h"
-
-namespace mojio {
-
-class ErrnoImpl;
-class FDImpl;
-
-// TODO(vtl): Probably this should be made into an implementation of |FDImpl|
-// (with additional methods) and renamed |DirectoryFDImpl|, to support opening
-// directories, |openat()|, etc>
-class DirectoryWrapper {
- public:
- DirectoryWrapper(ErrnoImpl* errno_impl, mojo::files::DirectoryPtr directory);
- ~DirectoryWrapper();
-
- std::unique_ptr<FDImpl> Open(const char* path, int oflag, mojio_mode_t mode);
- bool Chdir(const char* path);
-
- // TODO(vtl): MkDir(), etc.
-
- // Mostly for tests:
- mojo::files::DirectoryPtr& directory() { return directory_; }
-
- private:
- ErrnoImpl* const errno_impl_;
- mojo::files::DirectoryPtr directory_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper);
-};
-
-} // namespace mojio
-
-#endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_
« no previous file with comments | « services/files/c/BUILD.gn ('k') | services/files/c/lib/directory_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698