| 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 COMPONENTS_DRIVE_CHROMEOS_SYNC_CLIENT_H_ | 5 #ifndef COMPONENTS_DRIVE_CHROMEOS_SYNC_CLIENT_H_ |
| 6 #define COMPONENTS_DRIVE_CHROMEOS_SYNC_CLIENT_H_ | 6 #define COMPONENTS_DRIVE_CHROMEOS_SYNC_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "components/drive/chromeos/resource_metadata.h" | 18 #include "components/drive/chromeos/resource_metadata.h" |
| 19 #include "components/drive/file_errors.h" | 19 #include "components/drive/file_errors.h" |
| 20 #include "components/drive/job_scheduler.h" | 20 #include "components/drive/job_scheduler.h" |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class SequencedTaskRunner; | 23 class SequencedTaskRunner; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace drive { | 26 namespace drive { |
| 27 | 27 |
| 28 class FileCacheEntry; | |
| 29 class JobScheduler; | 28 class JobScheduler; |
| 30 class ResourceEntry; | 29 class ResourceEntry; |
| 31 struct ClientContext; | 30 struct ClientContext; |
| 32 | 31 |
| 33 namespace file_system { | 32 namespace file_system { |
| 34 class DownloadOperation; | 33 class DownloadOperation; |
| 35 class OperationDelegate; | 34 class OperationDelegate; |
| 36 } | 35 } |
| 37 | 36 |
| 38 namespace internal { | 37 namespace internal { |
| 39 | 38 |
| 40 class ChangeListLoader; | |
| 41 class EntryUpdatePerformer; | 39 class EntryUpdatePerformer; |
| 42 class FileCache; | 40 class FileCache; |
| 43 class LoaderController; | 41 class LoaderController; |
| 44 class ResourceMetadata; | 42 class ResourceMetadata; |
| 45 | 43 |
| 46 // The SyncClient is used to synchronize pinned files on Drive and the | 44 // The SyncClient is used to synchronize pinned files on Drive and the |
| 47 // cache on the local drive. | 45 // cache on the local drive. |
| 48 // | 46 // |
| 49 // If the user logs out before fetching of the pinned files is complete, this | 47 // If the user logs out before fetching of the pinned files is complete, this |
| 50 // client resumes fetching operations next time the user logs in, based on | 48 // client resumes fetching operations next time the user logs in, based on |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // invalidate its weak pointers before any other members are destroyed. | 190 // invalidate its weak pointers before any other members are destroyed. |
| 193 base::WeakPtrFactory<SyncClient> weak_ptr_factory_; | 191 base::WeakPtrFactory<SyncClient> weak_ptr_factory_; |
| 194 | 192 |
| 195 DISALLOW_COPY_AND_ASSIGN(SyncClient); | 193 DISALLOW_COPY_AND_ASSIGN(SyncClient); |
| 196 }; | 194 }; |
| 197 | 195 |
| 198 } // namespace internal | 196 } // namespace internal |
| 199 } // namespace drive | 197 } // namespace drive |
| 200 | 198 |
| 201 #endif // COMPONENTS_DRIVE_CHROMEOS_SYNC_CLIENT_H_ | 199 #endif // COMPONENTS_DRIVE_CHROMEOS_SYNC_CLIENT_H_ |
| OLD | NEW |