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

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

Issue 10827098: Update the number of fetched files more frequently. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update the number of fetched files more frequently. 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
« 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 17 matching lines...) Expand all
28 class SequencedTaskRunner; 28 class SequencedTaskRunner;
29 29
30 } // namespace base 30 } // namespace base
31 31
32 namespace gdata { 32 namespace gdata {
33 33
34 class DocumentsServiceInterface; 34 class DocumentsServiceInterface;
35 class DriveWebAppsRegistryInterface; 35 class DriveWebAppsRegistryInterface;
36 class GDataWapiFeedLoader; 36 class GDataWapiFeedLoader;
37 struct GetDocumentsParams; 37 struct GetDocumentsParams;
38 struct GetDocumentsUiState;
38 struct UploadFileInfo; 39 struct UploadFileInfo;
39 40
40 namespace { 41 namespace {
41 struct LoadRootFeedParams; 42 struct LoadRootFeedParams;
42 } // namespace 43 } // namespace
43 44
44 // Callback run as a response to LoadFromServer. 45 // Callback run as a response to LoadFromServer.
45 // 46 //
46 // TODO(satorux): Move this to a new file: crbug.com/138268 47 // TODO(satorux): Move this to a new file: crbug.com/138268
47 typedef base::Callback<void(GetDocumentsParams* params, 48 typedef base::Callback<void(GetDocumentsParams* params,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Callback for handling response from |GDataDocumentsService::GetDocuments|. 165 // Callback for handling response from |GDataDocumentsService::GetDocuments|.
165 // Invokes |callback| when done. 166 // Invokes |callback| when done.
166 void OnGetDocuments( 167 void OnGetDocuments(
167 ContentOrigin initial_origin, 168 ContentOrigin initial_origin,
168 const LoadDocumentFeedCallback& callback, 169 const LoadDocumentFeedCallback& callback,
169 GetDocumentsParams* params, 170 GetDocumentsParams* params,
170 base::TimeTicks start_time, 171 base::TimeTicks start_time,
171 GDataErrorCode status, 172 GDataErrorCode status,
172 scoped_ptr<base::Value> data); 173 scoped_ptr<base::Value> data);
173 174
175 // Callback for handling UI updates caused by document fetching.
176 void OnNotifyDocumentFeedFetched(
177 base::WeakPtr<GetDocumentsUiState> ui_state);
178
174 // Save filesystem as proto file. 179 // Save filesystem as proto file.
175 void SaveFileSystemAsProto(); 180 void SaveFileSystemAsProto();
176 181
177 GDataDirectoryService* directory_service_; // Not owned. 182 GDataDirectoryService* directory_service_; // Not owned.
178 DocumentsServiceInterface* documents_service_; // Not owned. 183 DocumentsServiceInterface* documents_service_; // Not owned.
179 DriveWebAppsRegistryInterface* webapps_registry_; // Not owned. 184 DriveWebAppsRegistryInterface* webapps_registry_; // Not owned.
180 GDataCache* cache_; // Not owned. 185 GDataCache* cache_; // Not owned.
181 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 186 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
182 ObserverList<Observer> observers_; 187 ObserverList<Observer> observers_;
183 188
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 // invalidate the weak pointers before any other members are destroyed. 968 // invalidate the weak pointers before any other members are destroyed.
964 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 969 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
965 // Unlike other classes, we need this as we need this to redirect a task 970 // Unlike other classes, we need this as we need this to redirect a task
966 // from IO thread to UI thread. 971 // from IO thread to UI thread.
967 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 972 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
968 }; 973 };
969 974
970 } // namespace gdata 975 } // namespace gdata
971 976
972 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 977 #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