Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 10832002: gdata: Upload locally modified file in the correct size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an unused function. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_GDATA_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 const GDataEntryProto* entry_proto); 739 const GDataEntryProto* entry_proto);
740 740
741 // Called when GDataCache::GetFileOnUIThread() is completed for 741 // Called when GDataCache::GetFileOnUIThread() is completed for
742 // UpdateFileByResourceId(). 742 // UpdateFileByResourceId().
743 void OnGetFileCompleteForUpdateFile( 743 void OnGetFileCompleteForUpdateFile(
744 const FileOperationCallback& callback, 744 const FileOperationCallback& callback,
745 GDataFileError error, 745 GDataFileError error,
746 const std::string& resource_id, 746 const std::string& resource_id,
747 const std::string& md5, 747 const std::string& md5,
748 const FilePath& cache_file_path); 748 const FilePath& cache_file_path);
749 // Callback for getting the size of the cache file in the blocking pool.
750 void OnGetFileSizeCompleteForUpdateFile(
751 const FileOperationCallback& callback,
752 const std::string& resource_id,
753 const std::string& md5,
754 const FilePath& cache_file_path,
755 GDataFileError* error,
756 int64* file_size);
749 // Callback for GDataRootDirectory::GetEntryByResourceIdAsync. 757 // Callback for GDataRootDirectory::GetEntryByResourceIdAsync.
750 void OnGetFileCompleteForUpdateFileByEntry( 758 void OnGetFileCompleteForUpdateFileByEntry(
751 const FileOperationCallback& callback, 759 const FileOperationCallback& callback,
752 const std::string& md5, 760 const std::string& md5,
761 int64 file_size,
753 const FilePath& cache_file_path, 762 const FilePath& cache_file_path,
754 GDataEntry* entry); 763 GDataEntry* entry);
755 764
756 765
757 // Called when GDataUploader::UploadUpdatedFile() is completed for 766 // Called when GDataUploader::UploadUpdatedFile() is completed for
758 // UpdateFileByResourceId(). 767 // UpdateFileByResourceId().
759 void OnUpdatedFileUploaded( 768 void OnUpdatedFileUploaded(
760 const FileOperationCallback& callback, 769 const FileOperationCallback& callback,
761 GDataFileError error, 770 GDataFileError error,
762 scoped_ptr<UploadFileInfo> upload_file_info); 771 scoped_ptr<UploadFileInfo> upload_file_info);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 890 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
882 891
883 ObserverList<Observer> observers_; 892 ObserverList<Observer> observers_;
884 893
885 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 894 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
886 }; 895 };
887 896
888 } // namespace gdata 897 } // namespace gdata
889 898
890 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 899 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698