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

Unified Diff: components/filesystem/files_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/file_impl_unittest.cc ('k') | components/filesystem/files_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/files_impl.h
diff --git a/components/filesystem/files_impl.h b/components/filesystem/files_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..37c44e59924beaf6e3c766a79abd9fd21ffe5892
--- /dev/null
+++ b/components/filesystem/files_impl.h
@@ -0,0 +1,41 @@
+// 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_FILES_IMPL_H_
+#define SERVICES_FILES_FILES_IMPL_H_
+
+#include "base/macros.h"
+#include "components/filesystem/public/interfaces/files.mojom.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace mojo {
+
+class ApplicationConnection;
+
+namespace files {
+
+class FilesImpl : public Files {
+ public:
+ FilesImpl(ApplicationConnection* connection, InterfaceRequest<Files> request);
+ ~FilesImpl() override;
+
+ // |Files| implementation:
+ // We provide a "private" temporary file system as the default. In Debug
+ // builds, we also provide access to a common file system named "debug"
+ // (stored under ~/MojoDebug).
+ void OpenFileSystem(const mojo::String& file_system,
+ InterfaceRequest<Directory> directory,
+ const OpenFileSystemCallback& callback) override;
+
+ private:
+ StrongBinding<Files> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(FilesImpl);
+};
+
+} // namespace files
+} // namespace mojo
+
+#endif // SERVICES_FILES_FILES_IMPL_H_
« no previous file with comments | « components/filesystem/file_impl_unittest.cc ('k') | components/filesystem/files_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698