| 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_CHANGE_LIST_LOADER_H_ | 5 #ifndef COMPONENTS_DRIVE_CHROMEOS_CHANGE_LIST_LOADER_H_ |
| 6 #define COMPONENTS_DRIVE_CHROMEOS_CHANGE_LIST_LOADER_H_ | 6 #define COMPONENTS_DRIVE_CHROMEOS_CHANGE_LIST_LOADER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 19 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
| 20 #include "components/drive/file_errors.h" | 20 #include "components/drive/file_errors.h" |
| 21 #include "google_apis/drive/drive_api_error_codes.h" | 21 #include "google_apis/drive/drive_api_error_codes.h" |
| 22 #include "google_apis/drive/drive_common_callbacks.h" | 22 #include "google_apis/drive/drive_common_callbacks.h" |
| 23 | 23 |
| 24 class GURL; | |
| 25 | |
| 26 namespace base { | 24 namespace base { |
| 27 class CancellationFlag; | 25 class CancellationFlag; |
| 28 class ScopedClosureRunner; | 26 class ScopedClosureRunner; |
| 29 class SequencedTaskRunner; | 27 class SequencedTaskRunner; |
| 30 class Time; | 28 class Time; |
| 31 } // namespace base | 29 } // namespace base |
| 32 | 30 |
| 33 namespace google_apis { | 31 namespace google_apis { |
| 34 class AboutResource; | 32 class AboutResource; |
| 35 } // namespace google_apis | 33 } // namespace google_apis |
| 36 | 34 |
| 37 namespace drive { | 35 namespace drive { |
| 38 | 36 |
| 39 class EventLogger; | 37 class EventLogger; |
| 40 class JobScheduler; | 38 class JobScheduler; |
| 41 class ResourceEntry; | |
| 42 | 39 |
| 43 namespace internal { | 40 namespace internal { |
| 44 | 41 |
| 45 class ChangeList; | 42 class ChangeList; |
| 46 class ChangeListLoaderObserver; | 43 class ChangeListLoaderObserver; |
| 47 class ChangeListProcessor; | 44 class ChangeListProcessor; |
| 48 class DirectoryLoader; | |
| 49 class ResourceMetadata; | 45 class ResourceMetadata; |
| 50 | 46 |
| 51 // Delays execution of tasks as long as more than one lock is alive. | 47 // Delays execution of tasks as long as more than one lock is alive. |
| 52 // Used to ensure that ChangeListLoader does not cause race condition by adding | 48 // Used to ensure that ChangeListLoader does not cause race condition by adding |
| 53 // new entries created by sync tasks before they do. | 49 // new entries created by sync tasks before they do. |
| 54 // All code which may add entries found on the server to the local metadata | 50 // All code which may add entries found on the server to the local metadata |
| 55 // should use this class. | 51 // should use this class. |
| 56 class LoaderController { | 52 class LoaderController { |
| 57 public: | 53 public: |
| 58 LoaderController(); | 54 LoaderController(); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // Note: This should remain the last member so it'll be destroyed and | 240 // Note: This should remain the last member so it'll be destroyed and |
| 245 // invalidate its weak pointers before any other members are destroyed. | 241 // invalidate its weak pointers before any other members are destroyed. |
| 246 base::WeakPtrFactory<ChangeListLoader> weak_ptr_factory_; | 242 base::WeakPtrFactory<ChangeListLoader> weak_ptr_factory_; |
| 247 DISALLOW_COPY_AND_ASSIGN(ChangeListLoader); | 243 DISALLOW_COPY_AND_ASSIGN(ChangeListLoader); |
| 248 }; | 244 }; |
| 249 | 245 |
| 250 } // namespace internal | 246 } // namespace internal |
| 251 } // namespace drive | 247 } // namespace drive |
| 252 | 248 |
| 253 #endif // COMPONENTS_DRIVE_CHROMEOS_CHANGE_LIST_LOADER_H_ | 249 #endif // COMPONENTS_DRIVE_CHROMEOS_CHANGE_LIST_LOADER_H_ |
| OLD | NEW |