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 #include "services/file/file_service.h" | 5 #include "services/file/file_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/process/process_handle.h" |
| 11 #include "base/strings/string_number_conversions.h" |
10 #include "components/filesystem/lock_table.h" | 12 #include "components/filesystem/lock_table.h" |
11 #include "components/leveldb/leveldb_service_impl.h" | 13 #include "components/leveldb/leveldb_service_impl.h" |
12 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
13 #include "services/file/file_system.h" | 15 #include "services/file/file_system.h" |
14 #include "services/file/user_id_map.h" | 16 #include "services/file/user_id_map.h" |
15 #include "services/service_manager/public/cpp/connection.h" | 17 #include "services/service_manager/public/cpp/connection.h" |
16 #include "services/service_manager/public/cpp/interface_registry.h" | 18 #include "services/service_manager/public/cpp/interface_registry.h" |
17 #include "services/service_manager/public/cpp/service_context.h" | 19 #include "services/service_manager/public/cpp/service_context.h" |
18 | 20 |
19 namespace file { | 21 namespace file { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 leveldb::mojom::LevelDBServiceRequest request) { | 121 leveldb::mojom::LevelDBServiceRequest request) { |
120 leveldb_service_runner_->PostTask( | 122 leveldb_service_runner_->PostTask( |
121 FROM_HERE, | 123 FROM_HERE, |
122 base::Bind( | 124 base::Bind( |
123 &FileService::LevelDBServiceObjects::OnLevelDBServiceRequest, | 125 &FileService::LevelDBServiceObjects::OnLevelDBServiceRequest, |
124 leveldb_objects_->AsWeakPtr(), remote_identity, | 126 leveldb_objects_->AsWeakPtr(), remote_identity, |
125 base::Passed(&request))); | 127 base::Passed(&request))); |
126 } | 128 } |
127 | 129 |
128 } // namespace user_service | 130 } // namespace user_service |
OLD | NEW |