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

Side by Side Diff: services/file/file_service.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase 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 | « services/file/file_service.h ('k') | services/file/file_system.h » ('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 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 "components/filesystem/lock_table.h" 10 #include "components/filesystem/lock_table.h"
11 #include "components/leveldb/leveldb_service_impl.h" 11 #include "components/leveldb/leveldb_service_impl.h"
12 #include "services/file/file_system.h" 12 #include "services/file/file_system.h"
13 #include "services/file/user_id_map.h" 13 #include "services/file/user_id_map.h"
14 #include "services/shell/public/cpp/connection.h" 14 #include "services/service_manager/public/cpp/connection.h"
15 15
16 namespace file { 16 namespace file {
17 17
18 class FileService::FileSystemObjects 18 class FileService::FileSystemObjects
19 : public base::SupportsWeakPtr<FileSystemObjects> { 19 : public base::SupportsWeakPtr<FileSystemObjects> {
20 public: 20 public:
21 // Created on the main thread. 21 // Created on the main thread.
22 FileSystemObjects(base::FilePath user_dir) : user_dir_(user_dir) {} 22 FileSystemObjects(base::FilePath user_dir) : user_dir_(user_dir) {}
23 23
24 // Destroyed on the |file_service_runner_|. 24 // Destroyed on the |file_service_runner_|.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 leveldb::mojom::LevelDBServiceRequest request) { 115 leveldb::mojom::LevelDBServiceRequest request) {
116 leveldb_service_runner_->PostTask( 116 leveldb_service_runner_->PostTask(
117 FROM_HERE, 117 FROM_HERE,
118 base::Bind( 118 base::Bind(
119 &FileService::LevelDBServiceObjects::OnLevelDBServiceRequest, 119 &FileService::LevelDBServiceObjects::OnLevelDBServiceRequest,
120 leveldb_objects_->AsWeakPtr(), remote_identity, 120 leveldb_objects_->AsWeakPtr(), remote_identity,
121 base::Passed(&request))); 121 base::Passed(&request)));
122 } 122 }
123 123
124 } // namespace user_service 124 } // namespace user_service
OLDNEW
« no previous file with comments | « services/file/file_service.h ('k') | services/file/file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698