| Index: components/profile_service/profile_service_impl.h
|
| diff --git a/components/profile_service/profile_service_impl.h b/components/profile_service/profile_service_impl.h
|
| index 72f7ce8c6fc24004a31adbdf275bc52d0587af8f..69633c2b6d97c9640cc5eb07f8b309fe66066819 100644
|
| --- a/components/profile_service/profile_service_impl.h
|
| +++ b/components/profile_service/profile_service_impl.h
|
| @@ -16,22 +16,35 @@ namespace filesystem {
|
| class LockTable;
|
| }
|
|
|
| +namespace mojo {
|
| +class MessageLoopRef;
|
| +}
|
| +
|
| namespace profile {
|
|
|
| // A service which serves directories to callers.
|
| class ProfileServiceImpl : public ProfileService {
|
| public:
|
| ProfileServiceImpl(mojo::Connection* connection,
|
| - mojo::InterfaceRequest<ProfileService> request,
|
| - base::FilePath base_profile_dir,
|
| + ProfileServiceRequest request,
|
| + scoped_ptr<mojo::MessageLoopRef> ref,
|
| + const base::FilePath& base_profile_dir,
|
| filesystem::LockTable* lock_table);
|
| ~ProfileServiceImpl() override;
|
|
|
| // Overridden from ProfileService:
|
| void GetDirectory(
|
| - mojo::InterfaceRequest<filesystem::Directory> request) override;
|
| + filesystem::DirectoryRequest request,
|
| + const GetDirectoryCallback& callback) override;
|
| + void GetSubDirectory(
|
| + const mojo::String& dir_name,
|
| + filesystem::DirectoryRequest request,
|
| + const GetSubDirectoryCallback& callback) override;
|
|
|
| private:
|
| + // Causes our application to quit when we go out of scope.
|
| + scoped_ptr<mojo::MessageLoopRef> message_loop_ref_;
|
| +
|
| mojo::StrongBinding<ProfileService> binding_;
|
| filesystem::LockTable* lock_table_;
|
| base::FilePath path_;
|
|
|