| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains utility functions for dealing with the local | 5 // This file contains utility functions for dealing with the local |
| 6 // filesystem. | 6 // filesystem. |
| 7 | 7 |
| 8 #ifndef BASE_FILE_UTIL_H_ | 8 #ifndef BASE_FILE_UTIL_H_ |
| 9 #define BASE_FILE_UTIL_H_ | 9 #define BASE_FILE_UTIL_H_ |
| 10 #pragma once | |
| 11 | 10 |
| 12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 13 | 12 |
| 14 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 15 #include <windows.h> | 14 #include <windows.h> |
| 16 #elif defined(OS_POSIX) | 15 #elif defined(OS_POSIX) |
| 17 #include <sys/stat.h> | 16 #include <sys/stat.h> |
| 18 #include <unistd.h> | 17 #include <unistd.h> |
| 19 #endif | 18 #endif |
| 20 | 19 |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 }; | 637 }; |
| 639 | 638 |
| 640 // Attempts determine the FileSystemType for |path|. | 639 // Attempts determine the FileSystemType for |path|. |
| 641 // Returns false if |path| doesn't exist. | 640 // Returns false if |path| doesn't exist. |
| 642 BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type); | 641 BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type); |
| 643 #endif | 642 #endif |
| 644 | 643 |
| 645 } // namespace file_util | 644 } // namespace file_util |
| 646 | 645 |
| 647 #endif // BASE_FILE_UTIL_H_ | 646 #endif // BASE_FILE_UTIL_H_ |
| OLD | NEW |