| Index: services/user/user_service.h
|
| diff --git a/components/profile_service/profile_service_impl.h b/services/user/user_service.h
|
| similarity index 62%
|
| rename from components/profile_service/profile_service_impl.h
|
| rename to services/user/user_service.h
|
| index 3e8c8e9150b5424a360fd3245fdd1b1077caa564..b5e4f8d69234d1f2ff9e50d87ff71685f36879a3 100644
|
| --- a/components/profile_service/profile_service_impl.h
|
| +++ b/services/user/user_service.h
|
| @@ -2,15 +2,15 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_
|
| -#define COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_
|
| +#ifndef SERVICES_USER_USER_SERVICE_IMPL_H_
|
| +#define SERVICES_USER_USER_SERVICE_IMPL_H_
|
|
|
| #include "base/files/file_path.h"
|
| #include "components/filesystem/public/interfaces/directory.mojom.h"
|
| -#include "components/profile_service/public/interfaces/profile.mojom.h"
|
| #include "mojo/public/cpp/bindings/interface_request.h"
|
| #include "mojo/public/cpp/bindings/strong_binding.h"
|
| #include "services/shell/public/cpp/connection.h"
|
| +#include "services/user/public/interfaces/user_service.mojom.h"
|
|
|
| namespace filesystem {
|
| class LockTable;
|
| @@ -20,16 +20,16 @@ namespace mojo {
|
| class MessageLoopRef;
|
| }
|
|
|
| -namespace profile {
|
| +namespace user_service {
|
|
|
| // A service which serves directories to callers.
|
| -class ProfileServiceImpl : public ProfileService {
|
| +class UserService : public mojom::UserService {
|
| public:
|
| - ProfileServiceImpl(const base::FilePath& base_profile_dir,
|
| - const scoped_refptr<filesystem::LockTable>& lock_table);
|
| - ~ProfileServiceImpl() override;
|
| + UserService(const base::FilePath& base_user_dir,
|
| + const scoped_refptr<filesystem::LockTable>& lock_table);
|
| + ~UserService() override;
|
|
|
| - // Overridden from ProfileService:
|
| + // Overridden from mojom::UserService:
|
| void GetDirectory(filesystem::DirectoryRequest request,
|
| const GetDirectoryCallback& callback) override;
|
| void GetSubDirectory(const mojo::String& sub_directory_path,
|
| @@ -40,9 +40,9 @@ class ProfileServiceImpl : public ProfileService {
|
| scoped_refptr<filesystem::LockTable> lock_table_;
|
| base::FilePath path_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ProfileServiceImpl);
|
| + DISALLOW_COPY_AND_ASSIGN(UserService);
|
| };
|
|
|
| -} // namespace profile
|
| +} // namespace user_service
|
|
|
| -#endif // COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_
|
| +#endif // SERVICES_USER_USER_SERVICE_IMPL_H_
|
|
|