| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class FileSystemApp : public mojo::ShellClient, | 23 class FileSystemApp : public mojo::ShellClient, |
| 24 public mojo::InterfaceFactory<FileSystem> { | 24 public mojo::InterfaceFactory<FileSystem> { |
| 25 public: | 25 public: |
| 26 FileSystemApp(); | 26 FileSystemApp(); |
| 27 ~FileSystemApp() override; | 27 ~FileSystemApp() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // |mojo::ShellClient| override: | 30 // |mojo::ShellClient| override: |
| 31 void Initialize(mojo::Shell* shell, const std::string& url, | 31 void Initialize(mojo::Shell* shell, const std::string& url, |
| 32 uint32_t id) override; | 32 uint32_t id, uint32_t user_id) override; |
| 33 bool AcceptConnection(mojo::Connection* connection) override; | 33 bool AcceptConnection(mojo::Connection* connection) override; |
| 34 | 34 |
| 35 // |InterfaceFactory<Files>| implementation: | 35 // |InterfaceFactory<Files>| implementation: |
| 36 void Create(mojo::Connection* connection, | 36 void Create(mojo::Connection* connection, |
| 37 mojo::InterfaceRequest<FileSystem> request) override; | 37 mojo::InterfaceRequest<FileSystem> request) override; |
| 38 | 38 |
| 39 mojo::Shell* shell_; | 39 mojo::Shell* shell_; |
| 40 mojo::TracingImpl tracing_; | 40 mojo::TracingImpl tracing_; |
| 41 | 41 |
| 42 scoped_ptr<LockTable> lock_table_; | 42 scoped_ptr<LockTable> lock_table_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(FileSystemApp); | 44 DISALLOW_COPY_AND_ASSIGN(FileSystemApp); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace filesystem | 47 } // namespace filesystem |
| 48 | 48 |
| 49 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ | 49 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ |
| OLD | NEW |