| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FILESYSTEM_FILE_SYSTEM_APP_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ |
| 6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ | 6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/filesystem/directory_impl.h" | 9 #include "components/filesystem/directory_impl.h" |
| 10 #include "components/filesystem/file_system_impl.h" | 10 #include "components/filesystem/file_system_impl.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 FileSystemApp(); | 24 FileSystemApp(); |
| 25 ~FileSystemApp() override; | 25 ~FileSystemApp() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // Gets the system specific toplevel profile directory. | 28 // Gets the system specific toplevel profile directory. |
| 29 static base::FilePath GetUserDataDir(); | 29 static base::FilePath GetUserDataDir(); |
| 30 | 30 |
| 31 // |service_manager::Service| override: | 31 // |service_manager::Service| override: |
| 32 void OnStart() override; | 32 void OnStart() override; |
| 33 void OnBindInterface(const service_manager::ServiceInfo& source_info, | 33 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
| 34 const std::string& interface_name, | 34 const std::string& interface_name, |
| 35 mojo::ScopedMessagePipeHandle interface_pipe) override; | 35 mojo::ScopedMessagePipeHandle interface_pipe) override; |
| 36 | 36 |
| 37 // |InterfaceFactory<Files>| implementation: | 37 // |InterfaceFactory<Files>| implementation: |
| 38 void Create(const service_manager::Identity& remote_identity, | 38 void Create(const service_manager::Identity& remote_identity, |
| 39 mojo::InterfaceRequest<mojom::FileSystem> request) override; | 39 mojo::InterfaceRequest<mojom::FileSystem> request) override; |
| 40 | 40 |
| 41 tracing::Provider tracing_; | 41 tracing::Provider tracing_; |
| 42 | 42 |
| 43 service_manager::BinderRegistry registry_; | 43 service_manager::BinderRegistry registry_; |
| 44 | 44 |
| 45 scoped_refptr<LockTable> lock_table_; | 45 scoped_refptr<LockTable> lock_table_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(FileSystemApp); | 47 DISALLOW_COPY_AND_ASSIGN(FileSystemApp); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace filesystem | 50 } // namespace filesystem |
| 51 | 51 |
| 52 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ | 52 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ |
| OLD | NEW |