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

Side by Side Diff: components/filesystem/file_system_impl.h

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « components/filesystem/file_system_app.cc ('k') | components/filesystem/file_system_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 shell { 18 namespace service_manager {
19 class Identity; 19 class Identity;
20 } 20 }
21 21
22 namespace filesystem { 22 namespace filesystem {
23 class FileSystemApp; 23 class FileSystemApp;
24 24
25 class LockTable; 25 class LockTable;
26 26
27 // The base implementation of FileSystemImpl. 27 // The base implementation of FileSystemImpl.
28 class FileSystemImpl : public mojom::FileSystem { 28 class FileSystemImpl : public mojom::FileSystem {
29 public: 29 public:
30 // |persistent_dir| is the directory served to callers of 30 // |persistent_dir| is the directory served to callers of
31 // |OpenPersistentFileSystem(). 31 // |OpenPersistentFileSystem().
32 FileSystemImpl(const shell::Identity& remote_identity, 32 FileSystemImpl(const service_manager::Identity& remote_identity,
33 base::FilePath persistent_dir, 33 base::FilePath persistent_dir,
34 scoped_refptr<LockTable> lock_table); 34 scoped_refptr<LockTable> lock_table);
35 ~FileSystemImpl() override; 35 ~FileSystemImpl() override;
36 36
37 // |Files| implementation: 37 // |Files| implementation:
38 void OpenTempDirectory(mojom::DirectoryRequest directory, 38 void OpenTempDirectory(mojom::DirectoryRequest directory,
39 const OpenTempDirectoryCallback& callback) override; 39 const OpenTempDirectoryCallback& callback) override;
40 void OpenPersistentFileSystem( 40 void OpenPersistentFileSystem(
41 mojom::DirectoryRequest directory, 41 mojom::DirectoryRequest directory,
42 const OpenPersistentFileSystemCallback& callback) override; 42 const OpenPersistentFileSystemCallback& callback) override;
43 43
44 private: 44 private:
45 const std::string remote_application_name_; 45 const std::string remote_application_name_;
46 scoped_refptr<LockTable> lock_table_; 46 scoped_refptr<LockTable> lock_table_;
47 47
48 base::FilePath persistent_dir_; 48 base::FilePath persistent_dir_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(FileSystemImpl); 50 DISALLOW_COPY_AND_ASSIGN(FileSystemImpl);
51 }; 51 };
52 52
53 } // namespace filesystem 53 } // namespace filesystem
54 54
55 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ 55 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « components/filesystem/file_system_app.cc ('k') | components/filesystem/file_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698