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

Side by Side Diff: services/user/user_service.h

Issue 1962503002: Add mojom module suffix in .mojom files for components/filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/user/public/interfaces/user_service.mojom ('k') | services/user/user_service.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 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_USER_USER_SERVICE_IMPL_H_ 5 #ifndef SERVICES_USER_USER_SERVICE_IMPL_H_
6 #define SERVICES_USER_USER_SERVICE_IMPL_H_ 6 #define SERVICES_USER_USER_SERVICE_IMPL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "components/filesystem/public/interfaces/directory.mojom.h" 9 #include "components/filesystem/public/interfaces/directory.mojom.h"
10 #include "mojo/public/cpp/bindings/interface_request.h" 10 #include "mojo/public/cpp/bindings/interface_request.h"
11 #include "mojo/public/cpp/bindings/strong_binding.h" 11 #include "mojo/public/cpp/bindings/strong_binding.h"
12 #include "services/shell/public/cpp/connection.h" 12 #include "services/shell/public/cpp/connection.h"
13 #include "services/user/public/interfaces/user_service.mojom.h" 13 #include "services/user/public/interfaces/user_service.mojom.h"
14 14
15 namespace filesystem { 15 namespace filesystem {
16 class LockTable; 16 class LockTable;
17 } 17 }
18 18
19 namespace user_service { 19 namespace user_service {
20 20
21 // A service which serves directories to callers. 21 // A service which serves directories to callers.
22 class UserService : public mojom::UserService { 22 class UserService : public mojom::UserService {
23 public: 23 public:
24 UserService(const base::FilePath& base_user_dir, 24 UserService(const base::FilePath& base_user_dir,
25 const scoped_refptr<filesystem::LockTable>& lock_table); 25 const scoped_refptr<filesystem::LockTable>& lock_table);
26 ~UserService() override; 26 ~UserService() override;
27 27
28 // Overridden from mojom::UserService: 28 // Overridden from mojom::UserService:
29 void GetDirectory(filesystem::DirectoryRequest request, 29 void GetDirectory(filesystem::mojom::DirectoryRequest request,
30 const GetDirectoryCallback& callback) override; 30 const GetDirectoryCallback& callback) override;
31 void GetSubDirectory(const mojo::String& sub_directory_path, 31 void GetSubDirectory(const mojo::String& sub_directory_path,
32 filesystem::DirectoryRequest request, 32 filesystem::mojom::DirectoryRequest request,
33 const GetSubDirectoryCallback& callback) override; 33 const GetSubDirectoryCallback& callback) override;
34 34
35 private: 35 private:
36 scoped_refptr<filesystem::LockTable> lock_table_; 36 scoped_refptr<filesystem::LockTable> lock_table_;
37 base::FilePath path_; 37 base::FilePath path_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(UserService); 39 DISALLOW_COPY_AND_ASSIGN(UserService);
40 }; 40 };
41 41
42 } // namespace user_service 42 } // namespace user_service
43 43
44 #endif // SERVICES_USER_USER_SERVICE_IMPL_H_ 44 #endif // SERVICES_USER_USER_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « services/user/public/interfaces/user_service.mojom ('k') | services/user/user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698