OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_FILE_MANAGER_FILE_MANAGER_IMPL_H_ |
| 6 #define SERVICES_FILE_MANAGER_FILE_MANAGER_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "mojo/public/cpp/bindings/interface_request.h" |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 11 #include "services/file_manager/file_manager.mojom.h" |
| 12 |
| 13 namespace mojo { |
| 14 |
| 15 class ApplicationConnection; |
| 16 |
| 17 namespace files { |
| 18 |
| 19 class FileManagerImpl : public FileManager { |
| 20 public: |
| 21 FileManagerImpl(ApplicationConnection* connection, |
| 22 InterfaceRequest<FileManager> request); |
| 23 ~FileManagerImpl() override; |
| 24 |
| 25 // |FileManager| implementation: |
| 26 void OpenFileSystem(FileSystem file_system, |
| 27 InterfaceRequest<Directory> directory, |
| 28 const Callback<void(Error)>& callback) override; |
| 29 |
| 30 private: |
| 31 StrongBinding<FileManager> binding_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(FileManagerImpl); |
| 34 }; |
| 35 |
| 36 } // namespace files |
| 37 } // namespace mojo |
| 38 |
| 39 #endif // SERVICES_FILE_MANAGER_FILE_MANAGER_IMPL_H_ |
OLD | NEW |