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/update_operation.h" | 14 #include "chrome/browser/chromeos/drive/file_system/update_operation.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/sync/entry_update_performer.h" | 16 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" |
17 #include "chrome/browser/google_apis/task_util.h" | |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "google_apis/drive/task_util.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace drive { | 22 namespace drive { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 // The delay constant is used to delay processing a sync task. We should not | 27 // The delay constant is used to delay processing a sync task. We should not |
28 // process SyncTasks immediately for the following reasons: | 28 // process SyncTasks immediately for the following reasons: |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 break; | 435 break; |
436 default: | 436 default: |
437 LOG(WARNING) << "Failed to update " << local_id << ": " | 437 LOG(WARNING) << "Failed to update " << local_id << ": " |
438 << FileErrorToString(error); | 438 << FileErrorToString(error); |
439 } | 439 } |
440 } | 440 } |
441 } | 441 } |
442 | 442 |
443 } // namespace internal | 443 } // namespace internal |
444 } // namespace drive | 444 } // namespace drive |
OLD | NEW |