OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ |
6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ | 6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/filesystem/public/interfaces/file_system.mojom.h" | 10 #include "components/filesystem/public/interfaces/file_system.mojom.h" |
11 #include "components/filesystem/shared_temp_dir.h" | 11 #include "components/filesystem/shared_temp_dir.h" |
12 #include "mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class FilePath; | 15 class FilePath; |
16 } | 16 } |
17 | 17 |
18 namespace service_manager { | 18 namespace service_manager { |
19 class Identity; | 19 class Identity; |
20 } | 20 } |
21 | 21 |
22 namespace filesystem { | 22 namespace filesystem { |
23 class FileSystemApp; | |
24 | 23 |
25 class LockTable; | 24 class LockTable; |
26 | 25 |
27 // The base implementation of FileSystemImpl. | 26 // The base implementation of FileSystemImpl. |
28 class FileSystemImpl : public mojom::FileSystem { | 27 class FileSystemImpl : public mojom::FileSystem { |
29 public: | 28 public: |
30 // |persistent_dir| is the directory served to callers of | 29 // |persistent_dir| is the directory served to callers of |
31 // |OpenPersistentFileSystem(). | 30 // |OpenPersistentFileSystem(). |
32 FileSystemImpl(const service_manager::Identity& remote_identity, | 31 FileSystemImpl(const service_manager::Identity& remote_identity, |
33 base::FilePath persistent_dir, | 32 base::FilePath persistent_dir, |
(...skipping 12 matching lines...) Expand all Loading... |
46 scoped_refptr<LockTable> lock_table_; | 45 scoped_refptr<LockTable> lock_table_; |
47 | 46 |
48 base::FilePath persistent_dir_; | 47 base::FilePath persistent_dir_; |
49 | 48 |
50 DISALLOW_COPY_AND_ASSIGN(FileSystemImpl); | 49 DISALLOW_COPY_AND_ASSIGN(FileSystemImpl); |
51 }; | 50 }; |
52 | 51 |
53 } // namespace filesystem | 52 } // namespace filesystem |
54 | 53 |
55 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ | 54 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ |
OLD | NEW |