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

Side by Side Diff: chrome/browser/chromeos/drive/file_system.h

Issue 150113002: drive: Also lock SearchOperation when locking ChangeListLoader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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_DRIVE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 namespace drive { 30 namespace drive {
31 31
32 class DriveServiceInterface; 32 class DriveServiceInterface;
33 class FileCacheEntry; 33 class FileCacheEntry;
34 class FileSystemObserver; 34 class FileSystemObserver;
35 class JobScheduler; 35 class JobScheduler;
36 36
37 namespace internal { 37 namespace internal {
38 class ChangeListLoader; 38 class ChangeListLoader;
39 class FileCache; 39 class FileCache;
40 class LoaderController;
40 class ResourceMetadata; 41 class ResourceMetadata;
41 class SyncClient; 42 class SyncClient;
42 } // namespace internal 43 } // namespace internal
43 44
44 namespace file_system { 45 namespace file_system {
45 class CopyOperation; 46 class CopyOperation;
46 class CreateDirectoryOperation; 47 class CreateDirectoryOperation;
47 class CreateFileOperation; 48 class CreateFileOperation;
48 class DownloadOperation; 49 class DownloadOperation;
49 class GetFileForSavingOperation; 50 class GetFileForSavingOperation;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 DriveServiceInterface* drive_service_; 249 DriveServiceInterface* drive_service_;
249 JobScheduler* scheduler_; 250 JobScheduler* scheduler_;
250 internal::ResourceMetadata* resource_metadata_; 251 internal::ResourceMetadata* resource_metadata_;
251 252
252 // Time of the last update check. 253 // Time of the last update check.
253 base::Time last_update_check_time_; 254 base::Time last_update_check_time_;
254 255
255 // Error of the last update check. 256 // Error of the last update check.
256 FileError last_update_check_error_; 257 FileError last_update_check_error_;
257 258
259 // Used to control ChangeListLoader.
260 scoped_ptr<internal::LoaderController> loader_controller_;
261
258 // The loader is used to load the change lists. 262 // The loader is used to load the change lists.
259 scoped_ptr<internal::ChangeListLoader> change_list_loader_; 263 scoped_ptr<internal::ChangeListLoader> change_list_loader_;
260 264
261 scoped_ptr<internal::SyncClient> sync_client_; 265 scoped_ptr<internal::SyncClient> sync_client_;
262 266
263 ObserverList<FileSystemObserver> observers_; 267 ObserverList<FileSystemObserver> observers_;
264 268
265 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 269 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
266 270
267 base::FilePath temporary_file_directory_; 271 base::FilePath temporary_file_directory_;
(...skipping 15 matching lines...) Expand all
283 // Note: This should remain the last member so it'll be destroyed and 287 // Note: This should remain the last member so it'll be destroyed and
284 // invalidate the weak pointers before any other members are destroyed. 288 // invalidate the weak pointers before any other members are destroyed.
285 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; 289 base::WeakPtrFactory<FileSystem> weak_ptr_factory_;
286 290
287 DISALLOW_COPY_AND_ASSIGN(FileSystem); 291 DISALLOW_COPY_AND_ASSIGN(FileSystem);
288 }; 292 };
289 293
290 } // namespace drive 294 } // namespace drive
291 295
292 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 296 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_loader_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698