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_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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 typedef base::Callback<void(GetDocumentsParams* params, | 168 typedef base::Callback<void(GetDocumentsParams* params, |
169 GDataFileError error)> | 169 GDataFileError error)> |
170 LoadDocumentFeedCallback; | 170 LoadDocumentFeedCallback; |
171 | 171 |
172 // Struct used to record UMA stats with FeedToFileResourceMap(). | 172 // Struct used to record UMA stats with FeedToFileResourceMap(). |
173 struct FeedToFileResourceMapUmaStats; | 173 struct FeedToFileResourceMapUmaStats; |
174 | 174 |
175 // Struct used for StartFileUploadOnUIThread(). | 175 // Struct used for StartFileUploadOnUIThread(). |
176 struct StartFileUploadParams; | 176 struct StartFileUploadParams; |
177 | 177 |
178 // Finds entry object by |file_path| and returns the entry object. | |
179 // Returns NULL if it does not find the entry. | |
180 GDataEntry* GetGDataEntryByPath(const FilePath& file_path); | |
181 | |
182 // Callback passed to |LoadFeedFromServer| from |Search| method. | 178 // Callback passed to |LoadFeedFromServer| from |Search| method. |
183 // |callback| is that should be run with data received from | 179 // |callback| is that should be run with data received from |
184 // |LoadFeedFromServer|. | 180 // |LoadFeedFromServer|. |
185 // |params| params used for getting document feed for content search. | 181 // |params| params used for getting document feed for content search. |
186 // |error| error code returned by |LoadFeedFromServer|. | 182 // |error| error code returned by |LoadFeedFromServer|. |
187 void OnSearch(const SearchCallback& callback, | 183 void OnSearch(const SearchCallback& callback, |
188 GetDocumentsParams* params, | 184 GetDocumentsParams* params, |
189 GDataFileError error); | 185 GDataFileError error); |
190 | 186 |
191 // Part of TransferFileFromLocalToRemote(). Called after | 187 // Part of TransferFileFromLocalToRemote(). Called after |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; | 909 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; |
914 | 910 |
915 ObserverList<Observer> observers_; | 911 ObserverList<Observer> observers_; |
916 | 912 |
917 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 913 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
918 }; | 914 }; |
919 | 915 |
920 } // namespace gdata | 916 } // namespace gdata |
921 | 917 |
922 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 918 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |