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_JOB_SCHEDULER_H_ | 5 #ifndef COMPONENTS_DRIVE_JOB_SCHEDULER_H_ |
6 #define COMPONENTS_DRIVE_JOB_SCHEDULER_H_ | 6 #define COMPONENTS_DRIVE_JOB_SCHEDULER_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/id_map.h" | 14 #include "base/id_map.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "components/drive/drive_uploader.h" | 18 #include "components/drive/drive_uploader.h" |
19 #include "components/drive/job_list.h" | 19 #include "components/drive/job_list.h" |
20 #include "components/drive/job_queue.h" | 20 #include "components/drive/job_queue.h" |
21 #include "components/drive/service/drive_service_interface.h" | 21 #include "components/drive/service/drive_service_interface.h" |
22 #include "net/base/network_change_notifier.h" | 22 #include "net/base/network_change_notifier.h" |
23 | 23 |
24 class PrefService; | 24 class PrefService; |
25 | 25 |
26 namespace base { | |
27 class SeqencedTaskRunner; | |
28 } | |
29 | |
30 namespace drive { | 26 namespace drive { |
31 | 27 |
32 class EventLogger; | 28 class EventLogger; |
33 | 29 |
34 // Priority of a job. Higher values are lower priority. | 30 // Priority of a job. Higher values are lower priority. |
35 enum ContextType { | 31 enum ContextType { |
36 USER_INITIATED, | 32 USER_INITIATED, |
37 BACKGROUND, | 33 BACKGROUND, |
38 // Indicates the number of values of this enum. | 34 // Indicates the number of values of this enum. |
39 NUM_CONTEXT_TYPES, | 35 NUM_CONTEXT_TYPES, |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 | 399 |
404 // Note: This should remain the last member so it'll be destroyed and | 400 // Note: This should remain the last member so it'll be destroyed and |
405 // invalidate its weak pointers before any other members are destroyed. | 401 // invalidate its weak pointers before any other members are destroyed. |
406 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; | 402 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; |
407 DISALLOW_COPY_AND_ASSIGN(JobScheduler); | 403 DISALLOW_COPY_AND_ASSIGN(JobScheduler); |
408 }; | 404 }; |
409 | 405 |
410 } // namespace drive | 406 } // namespace drive |
411 | 407 |
412 #endif // COMPONENTS_DRIVE_JOB_SCHEDULER_H_ | 408 #endif // COMPONENTS_DRIVE_JOB_SCHEDULER_H_ |
OLD | NEW |