| 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 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_FILE_WRITE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_FILE_WRITE_HELPER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_FILE_WRITE_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_FILE_WRITE_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 const FilePath& file_path, | 37 const FilePath& file_path, |
| 38 const OpenFileCallback& callback, | 38 const OpenFileCallback& callback, |
| 39 DriveFileError result); | 39 DriveFileError result); |
| 40 void PrepareWritableFileAndRunAfterOpenFile( | 40 void PrepareWritableFileAndRunAfterOpenFile( |
| 41 const FilePath& file_path, | 41 const FilePath& file_path, |
| 42 const OpenFileCallback& callback, | 42 const OpenFileCallback& callback, |
| 43 DriveFileError result, | 43 DriveFileError result, |
| 44 const FilePath& local_cache_path); | 44 const FilePath& local_cache_path); |
| 45 void PrepareWritableFileAndRunAfterCallback(const FilePath& file_path); | 45 void PrepareWritableFileAndRunAfterCallback(const FilePath& file_path); |
| 46 | 46 |
| 47 // File system owned by GDataSystemService. | 47 // File system owned by DriveSystemService. |
| 48 DriveFileSystemInterface* file_system_; | 48 DriveFileSystemInterface* file_system_; |
| 49 | 49 |
| 50 // WeakPtrFactory bound to the UI thread. | 50 // WeakPtrFactory bound to the UI thread. |
| 51 // Note: This should remain the last member so it'll be destroyed and | 51 // Note: This should remain the last member so it'll be destroyed and |
| 52 // invalidate its weak pointers before any other members are destroyed. | 52 // invalidate its weak pointers before any other members are destroyed. |
| 53 base::WeakPtrFactory<FileWriteHelper> weak_ptr_factory_; | 53 base::WeakPtrFactory<FileWriteHelper> weak_ptr_factory_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(FileWriteHelper); | 55 DISALLOW_COPY_AND_ASSIGN(FileWriteHelper); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace gdata | 58 } // namespace gdata |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FILE_WRITE_HELPER_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FILE_WRITE_HELPER_H_ |
| OLD | NEW |