| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include <copyfile.h> | 8 #include <copyfile.h> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 return false; | 21 return false; |
| 22 *path = FilePath([tmp fileSystemRepresentation]); | 22 *path = FilePath([tmp fileSystemRepresentation]); |
| 23 return true; | 23 return true; |
| 24 } | 24 } |
| 25 | 25 |
| 26 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { | 26 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { |
| 27 return (copyfile(from_path.value().c_str(), | 27 return (copyfile(from_path.value().c_str(), |
| 28 to_path.value().c_str(), NULL, COPYFILE_ALL) == 0); | 28 to_path.value().c_str(), NULL, COPYFILE_ALL) == 0); |
| 29 } | 29 } |
| 30 | 30 |
| 31 bool EvictFileFromSystemCache(const FilePath path) { | |
| 32 // TODO(port): Implement. | |
| 33 NOTIMPLEMENTED(); | |
| 34 return false; | |
| 35 } | |
| 36 | |
| 37 } // namespace | 31 } // namespace |
| OLD | NEW |