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 #include "chrome/browser/chromeos/drive/sync_client.h" | 5 #include "chrome/browser/chromeos/drive/sync_client.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "chrome/browser/chromeos/drive/drive.pb.h" | 11 #include "chrome/browser/chromeos/drive/drive.pb.h" |
12 #include "chrome/browser/chromeos/drive/file_cache.h" | 12 #include "chrome/browser/chromeos/drive/file_cache.h" |
13 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" | 13 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" |
14 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" | 14 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" |
15 #include "chrome/browser/chromeos/drive/file_system_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 16 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
16 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" | 17 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" |
17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
18 #include "google_apis/drive/task_util.h" | 19 #include "google_apis/drive/task_util.h" |
19 | 20 |
20 using content::BrowserThread; | 21 using content::BrowserThread; |
21 | 22 |
22 namespace drive { | 23 namespace drive { |
23 namespace internal { | 24 namespace internal { |
24 | 25 |
25 namespace { | 26 namespace { |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 const ResourceEntry& entry = (*entries)[i]; | 464 const ResourceEntry& entry = (*entries)[i]; |
464 if (entry.metadata_edit_state() != ResourceEntry::CLEAN) { | 465 if (entry.metadata_edit_state() != ResourceEntry::CLEAN) { |
465 AddUpdateTaskInternal(ClientContext(BACKGROUND), entry.local_id(), | 466 AddUpdateTaskInternal(ClientContext(BACKGROUND), entry.local_id(), |
466 base::TimeDelta::FromSeconds(0)); | 467 base::TimeDelta::FromSeconds(0)); |
467 } | 468 } |
468 } | 469 } |
469 } | 470 } |
470 | 471 |
471 } // namespace internal | 472 } // namespace internal |
472 } // namespace drive | 473 } // namespace drive |
OLD | NEW |