OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/directory_loader.h" | 5 #include "chrome/browser/chromeos/drive/directory_loader.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 12 #include "chrome/browser/chromeos/drive/change_list_loader.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_core_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_core_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/resource_metadata.h" | 17 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
18 #include "chrome/browser/drive/event_logger.h" | 18 #include "components/drive/event_logger.h" |
19 #include "google_apis/drive/drive_api_parser.h" | 19 #include "google_apis/drive/drive_api_parser.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
22 namespace drive { | 22 namespace drive { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 // Minimum changestamp gap required to start loading directory. | 27 // Minimum changestamp gap required to start loading directory. |
28 const int kMinimumChangestampGap = 50; | 28 const int kMinimumChangestampGap = 50; |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 // Also notify the observers. | 562 // Also notify the observers. |
563 if (error == FILE_ERROR_OK && !directory_path->empty()) { | 563 if (error == FILE_ERROR_OK && !directory_path->empty()) { |
564 FOR_EACH_OBSERVER(ChangeListLoaderObserver, | 564 FOR_EACH_OBSERVER(ChangeListLoaderObserver, |
565 observers_, | 565 observers_, |
566 OnDirectoryReloaded(*directory_path)); | 566 OnDirectoryReloaded(*directory_path)); |
567 } | 567 } |
568 } | 568 } |
569 | 569 |
570 } // namespace internal | 570 } // namespace internal |
571 } // namespace drive | 571 } // namespace drive |
OLD | NEW |