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_SERVICE_H_ | 5 #ifndef SERVICES_FILE_FILE_SERVICE_H_ |
6 #define SERVICES_FILE_FILE_SERVICE_H_ | 6 #define SERVICES_FILE_FILE_SERVICE_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "components/filesystem/lock_table.h" | 10 #include "components/filesystem/lock_table.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public service_manager::InterfaceFactory<leveldb::mojom::LevelDBService> { | 27 public service_manager::InterfaceFactory<leveldb::mojom::LevelDBService> { |
28 public: | 28 public: |
29 FileService( | 29 FileService( |
30 scoped_refptr<base::SingleThreadTaskRunner> file_service_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> file_service_runner, |
31 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner); | 31 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner); |
32 ~FileService() override; | 32 ~FileService() override; |
33 | 33 |
34 private: | 34 private: |
35 // |Service| override: | 35 // |Service| override: |
36 void OnStart() override; | 36 void OnStart() override; |
37 void OnBindInterface(const service_manager::ServiceInfo& source_info, | 37 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
38 const std::string& interface_name, | 38 const std::string& interface_name, |
39 mojo::ScopedMessagePipeHandle interface_pipe) override; | 39 mojo::ScopedMessagePipeHandle interface_pipe) override; |
40 | 40 |
41 // |InterfaceFactory<mojom::FileSystem>| implementation: | 41 // |InterfaceFactory<mojom::FileSystem>| implementation: |
42 void Create(const service_manager::Identity& remote_identity, | 42 void Create(const service_manager::Identity& remote_identity, |
43 mojom::FileSystemRequest request) override; | 43 mojom::FileSystemRequest request) override; |
44 | 44 |
45 // |InterfaceFactory<LevelDBService>| implementation: | 45 // |InterfaceFactory<LevelDBService>| implementation: |
46 void Create(const service_manager::Identity& remote_identity, | 46 void Create(const service_manager::Identity& remote_identity, |
47 leveldb::mojom::LevelDBServiceRequest request) override; | 47 leveldb::mojom::LevelDBServiceRequest request) override; |
(...skipping 12 matching lines...) Expand all Loading... |
60 std::unique_ptr<LevelDBServiceObjects> leveldb_objects_; | 60 std::unique_ptr<LevelDBServiceObjects> leveldb_objects_; |
61 | 61 |
62 service_manager::BinderRegistry registry_; | 62 service_manager::BinderRegistry registry_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(FileService); | 64 DISALLOW_COPY_AND_ASSIGN(FileService); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace file | 67 } // namespace file |
68 | 68 |
69 #endif // SERVICES_FILE_FILE_SERVICE_H_ | 69 #endif // SERVICES_FILE_FILE_SERVICE_H_ |
OLD | NEW |