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

Unified Diff: services/file_manager/file_manager_impl.h

Issue 875643004: Prototype of Files service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: wipwipwip Created 5 years, 11 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
Index: services/file_manager/file_manager_impl.h
diff --git a/services/file_manager/file_manager_impl.h b/services/file_manager/file_manager_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1507145a7ccb65eb468e963c4c0223e001c5dfa
--- /dev/null
+++ b/services/file_manager/file_manager_impl.h
@@ -0,0 +1,39 @@
+// 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_FILE_MANAGER_FILE_MANAGER_IMPL_H_
+#define SERVICES_FILE_MANAGER_FILE_MANAGER_IMPL_H_
+
+#include "base/macros.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "services/file_manager/file_manager.mojom.h"
+
+namespace mojo {
+
+class ApplicationConnection;
+
+namespace files {
+
+class FileManagerImpl : public FileManager {
+ public:
+ FileManagerImpl(ApplicationConnection* connection,
+ InterfaceRequest<FileManager> request);
+ ~FileManagerImpl() override;
+
+ // |FileManager| implementation:
+ void OpenFileSystem(FileSystem file_system,
+ InterfaceRequest<Directory> directory,
+ const Callback<void(Error)>& callback) override;
+
+ private:
+ StrongBinding<FileManager> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(FileManagerImpl);
+};
+
+} // namespace files
+} // namespace mojo
+
+#endif // SERVICES_FILE_MANAGER_FILE_MANAGER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698