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/change_list_loader.h" | 5 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" | 13 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" |
14 #include "chrome/browser/chromeos/drive/change_list_processor.h" | 14 #include "chrome/browser/chromeos/drive/change_list_processor.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/job_scheduler.h" |
17 #include "chrome/browser/chromeos/drive/logging.h" | 17 #include "chrome/browser/chromeos/drive/logging.h" |
18 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 18 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
19 #include "chrome/browser/drive/drive_api_util.h" | 19 #include "chrome/browser/drive/drive_api_util.h" |
20 #include "chrome/browser/drive/drive_service_interface.h" | 20 #include "chrome/browser/drive/drive_service_interface.h" |
21 #include "chrome/browser/google_apis/drive_api_parser.h" | |
22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 #include "google_apis/drive/drive_api_parser.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 using content::BrowserThread; | 25 using content::BrowserThread; |
26 | 26 |
27 namespace drive { | 27 namespace drive { |
28 namespace internal { | 28 namespace internal { |
29 | 29 |
30 typedef base::Callback<void(FileError, ScopedVector<ChangeList>)> | 30 typedef base::Callback<void(FileError, ScopedVector<ChangeList>)> |
31 FeedFetcherCallback; | 31 FeedFetcherCallback; |
32 | 32 |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 FOR_EACH_OBSERVER(ChangeListLoaderObserver, observers_, | 927 FOR_EACH_OBSERVER(ChangeListLoaderObserver, observers_, |
928 OnDirectoryChanged(*dir_iter)); | 928 OnDirectoryChanged(*dir_iter)); |
929 } | 929 } |
930 } | 930 } |
931 | 931 |
932 callback.Run(); | 932 callback.Run(); |
933 } | 933 } |
934 | 934 |
935 } // namespace internal | 935 } // namespace internal |
936 } // namespace drive | 936 } // namespace drive |
OLD | NEW |