OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_FILE_FILE_SYSTEM_H_ | 5 #ifndef SERVICES_FILE_FILE_SYSTEM_H_ |
6 #define SERVICES_FILE_FILE_SYSTEM_H_ | 6 #define SERVICES_FILE_FILE_SYSTEM_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "components/filesystem/public/interfaces/directory.mojom.h" | 9 #include "components/filesystem/public/interfaces/directory.mojom.h" |
10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "mojo/public/cpp/bindings/interface_request.h" |
11 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
12 #include "services/file/public/interfaces/file_system.mojom.h" | 12 #include "services/file/public/interfaces/file_system.mojom.h" |
13 #include "services/shell/public/cpp/connection.h" | 13 #include "services/service_manager/public/cpp/connection.h" |
14 | 14 |
15 namespace filesystem { | 15 namespace filesystem { |
16 class LockTable; | 16 class LockTable; |
17 } | 17 } |
18 | 18 |
19 namespace file { | 19 namespace file { |
20 | 20 |
21 // A service which serves directories to callers. | 21 // A service which serves directories to callers. |
22 class FileSystem : public mojom::FileSystem { | 22 class FileSystem : public mojom::FileSystem { |
23 public: | 23 public: |
(...skipping 11 matching lines...) Expand all Loading... |
35 private: | 35 private: |
36 scoped_refptr<filesystem::LockTable> lock_table_; | 36 scoped_refptr<filesystem::LockTable> lock_table_; |
37 base::FilePath path_; | 37 base::FilePath path_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 39 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace file | 42 } // namespace file |
43 | 43 |
44 #endif // SERVICES_FILE_FILE_SYSTEM_H_ | 44 #endif // SERVICES_FILE_FILE_SYSTEM_H_ |
OLD | NEW |