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