| 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 16 matching lines...) Expand all Loading... |
| 27 ~FileSystemApp() override; | 27 ~FileSystemApp() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // Gets the system specific toplevel profile directory. | 30 // Gets the system specific toplevel profile directory. |
| 31 static base::FilePath GetUserDataDir(); | 31 static base::FilePath GetUserDataDir(); |
| 32 | 32 |
| 33 // |mojo::ShellClient| override: | 33 // |mojo::ShellClient| override: |
| 34 void Initialize(mojo::Connector* connector, const mojo::Identity& identity, | 34 void Initialize(mojo::Connector* connector, const mojo::Identity& identity, |
| 35 uint32_t id) override; | 35 uint32_t id) override; |
| 36 bool AcceptConnection(mojo::Connection* connection) override; | 36 bool AcceptConnection(mojo::Connection* connection) override; |
| 37 void ShellConnectionLost() override; |
| 37 | 38 |
| 38 // |InterfaceFactory<Files>| implementation: | 39 // |InterfaceFactory<Files>| implementation: |
| 39 void Create(mojo::Connection* connection, | 40 void Create(mojo::Connection* connection, |
| 40 mojo::InterfaceRequest<FileSystem> request) override; | 41 mojo::InterfaceRequest<FileSystem> request) override; |
| 41 | 42 |
| 42 mojo::TracingImpl tracing_; | 43 mojo::TracingImpl tracing_; |
| 43 | 44 |
| 44 scoped_ptr<LockTable> lock_table_; | 45 scoped_ptr<LockTable> lock_table_; |
| 45 | 46 |
| 46 DISALLOW_COPY_AND_ASSIGN(FileSystemApp); | 47 DISALLOW_COPY_AND_ASSIGN(FileSystemApp); |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace filesystem | 50 } // namespace filesystem |
| 50 | 51 |
| 51 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ | 52 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_ |
| OLD | NEW |