| 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 SERVICES_FILES_C_LIB_SINGLETONS_H_ | 5 #ifndef SERVICES_FILES_C_LIB_SINGLETONS_H_ |
| 6 #define SERVICES_FILES_C_LIB_SINGLETONS_H_ | 6 #define SERVICES_FILES_C_LIB_SINGLETONS_H_ |
| 7 | 7 |
| 8 #include "files/public/interfaces/directory.mojom.h" | 8 #include "files/interfaces/directory.mojom.h" |
| 9 | 9 |
| 10 namespace mojio { | 10 namespace mojio { |
| 11 | 11 |
| 12 class DirectoryWrapper; | 12 class DirectoryWrapper; |
| 13 class ErrnoImpl; | 13 class ErrnoImpl; |
| 14 class FDTable; | 14 class FDTable; |
| 15 | 15 |
| 16 namespace singletons { | 16 namespace singletons { |
| 17 | 17 |
| 18 // Gets the singleton |ErrnoImpl| (creating it if necessary), which gets/sets | 18 // Gets the singleton |ErrnoImpl| (creating it if necessary), which gets/sets |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 // been reset, in which case it will also use the singleton |ErrnoImpl| (to set | 37 // been reset, in which case it will also use the singleton |ErrnoImpl| (to set |
| 38 // errno). | 38 // errno). |
| 39 DirectoryWrapper* GetCurrentWorkingDirectory(); | 39 DirectoryWrapper* GetCurrentWorkingDirectory(); |
| 40 // Resets (destroys) the singleton |DirectoryWrapper|. | 40 // Resets (destroys) the singleton |DirectoryWrapper|. |
| 41 void ResetCurrentWorkingDirectory(); | 41 void ResetCurrentWorkingDirectory(); |
| 42 | 42 |
| 43 } // namespace singletons | 43 } // namespace singletons |
| 44 } // namespace mojio | 44 } // namespace mojio |
| 45 | 45 |
| 46 #endif // SERVICES_FILES_C_LIB_SINGLETONS_H_ | 46 #endif // SERVICES_FILES_C_LIB_SINGLETONS_H_ |
| OLD | NEW |