| 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 #ifndef COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_ | 5 #ifndef COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_ |
| 6 #define COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_ | 6 #define COMPONENTS_PROFILE_SERVICE_PROFILE_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 "components/profile_service/public/interfaces/profile.mojom.h" | 10 #include "components/profile_service/public/interfaces/profile.mojom.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class ProfileServiceImpl : public ProfileService { | 22 class ProfileServiceImpl : public ProfileService { |
| 23 public: | 23 public: |
| 24 ProfileServiceImpl(mojo::Connection* connection, | 24 ProfileServiceImpl(mojo::Connection* connection, |
| 25 mojo::InterfaceRequest<ProfileService> request, | 25 mojo::InterfaceRequest<ProfileService> request, |
| 26 base::FilePath base_profile_dir, | 26 base::FilePath base_profile_dir, |
| 27 filesystem::LockTable* lock_table); | 27 filesystem::LockTable* lock_table); |
| 28 ~ProfileServiceImpl() override; | 28 ~ProfileServiceImpl() override; |
| 29 | 29 |
| 30 // Overridden from ProfileService: | 30 // Overridden from ProfileService: |
| 31 void GetDirectory( | 31 void GetDirectory( |
| 32 mojo::InterfaceRequest<filesystem::Directory> request) override; | 32 mojo::InterfaceRequest<filesystem::Directory> request, |
| 33 const GetDirectoryCallback& callback) override; |
| 33 | 34 |
| 34 private: | 35 private: |
| 35 mojo::StrongBinding<ProfileService> binding_; | 36 mojo::StrongBinding<ProfileService> binding_; |
| 36 filesystem::LockTable* lock_table_; | 37 filesystem::LockTable* lock_table_; |
| 37 base::FilePath path_; | 38 base::FilePath path_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(ProfileServiceImpl); | 40 DISALLOW_COPY_AND_ASSIGN(ProfileServiceImpl); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace profile | 43 } // namespace profile |
| 43 | 44 |
| 44 #endif // COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_ | 45 #endif // COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_ |
| OLD | NEW |