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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..72f7ce8c6fc24004a31adbdf275bc52d0587af8f |
--- /dev/null |
+++ b/components/profile_service/profile_service_impl.h |
@@ -0,0 +1,44 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// 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_ |
+ |
+#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 "mojo/shell/public/cpp/connection.h" |
+ |
+namespace filesystem { |
+class LockTable; |
+} |
+ |
+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, |
+ filesystem::LockTable* lock_table); |
+ ~ProfileServiceImpl() override; |
+ |
+ // Overridden from ProfileService: |
+ void GetDirectory( |
+ mojo::InterfaceRequest<filesystem::Directory> request) override; |
+ |
+ private: |
+ mojo::StrongBinding<ProfileService> binding_; |
+ filesystem::LockTable* lock_table_; |
+ base::FilePath path_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ProfileServiceImpl); |
+}; |
+ |
+} // namespace profile |
+ |
+#endif // COMPONENTS_PROFILE_SERVICE_PROFILE_SERVICE_IMPL_H_ |