| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "webkit/common/blob/scoped_file.h" | 9 #include "webkit/common/blob/scoped_file.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 scoped_ptr<FileMetadata> CreateFileMetadataFromFileResource( | 36 scoped_ptr<FileMetadata> CreateFileMetadataFromFileResource( |
| 37 int64 change_id, | 37 int64 change_id, |
| 38 const google_apis::FileResource& resource); | 38 const google_apis::FileResource& resource); |
| 39 scoped_ptr<FileMetadata> CreateFileMetadataFromChangeResource( | 39 scoped_ptr<FileMetadata> CreateFileMetadataFromChangeResource( |
| 40 const google_apis::ChangeResource& change); | 40 const google_apis::ChangeResource& change); |
| 41 | 41 |
| 42 // Creates a temporary file in |dir_path|. This must be called on an | 42 // Creates a temporary file in |dir_path|. This must be called on an |
| 43 // IO-allowed thread. | 43 // IO-allowed thread. |
| 44 webkit_blob::ScopedFile CreateTemporaryFile(); | 44 webkit_blob::ScopedFile CreateTemporaryFile(); |
| 45 | 45 |
| 46 bool HasFileAsParent(const FileDetails& details, const std::string& file_id); |
| 47 |
| 46 } // namespace drive_backend | 48 } // namespace drive_backend |
| 47 } // namespace sync_file_system | 49 } // namespace sync_file_system |
| 48 | 50 |
| 49 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ | 51 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ |
| OLD | NEW |