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

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

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/services/files/public/c/BUILD.gn ('k') | mojo/services/files/public/c/lib/directory_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/files/public/c/lib/directory_wrapper.h
diff --git a/mojo/services/files/public/c/lib/directory_wrapper.h b/mojo/services/files/public/c/lib/directory_wrapper.h
deleted file mode 100644
index 90df8c0753fb1659d44a1ea4b2f02ddcf03e8adf..0000000000000000000000000000000000000000
--- a/mojo/services/files/public/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 "files/public/c/mojio_sys_types.h"
-#include "files/public/interfaces/directory.mojom.h"
-#include "mojo/public/c/system/macros.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 | « mojo/services/files/public/c/BUILD.gn ('k') | mojo/services/files/public/c/lib/directory_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698