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_processor.h" | 5 #include "chrome/browser/chromeos/drive/change_list_processor.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/synchronization/cancellation_flag.h" | 9 #include "base/synchronization/cancellation_flag.h" |
10 #include "chrome/browser/chromeos/drive/drive.pb.h" | 10 #include "chrome/browser/chromeos/drive/drive.pb.h" |
11 #include "chrome/browser/chromeos/drive/file_change.h" | 11 #include "chrome/browser/chromeos/drive/file_change.h" |
12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
13 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 13 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
14 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 14 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
15 #include "chrome/browser/drive/drive_api_util.h" | 15 #include "components/drive/drive_api_util.h" |
16 #include "google_apis/drive/drive_api_parser.h" | 16 #include "google_apis/drive/drive_api_parser.h" |
17 | 17 |
18 namespace drive { | 18 namespace drive { |
19 namespace internal { | 19 namespace internal { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 class ChangeListToEntryMapUMAStats { | 23 class ChangeListToEntryMapUMAStats { |
24 public: | 24 public: |
25 ChangeListToEntryMapUMAStats() | 25 ChangeListToEntryMapUMAStats() |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 if (!file_path.empty()) { | 493 if (!file_path.empty()) { |
494 FileChange::ChangeType type = entry.deleted() | 494 FileChange::ChangeType type = entry.deleted() |
495 ? FileChange::CHANGE_TYPE_DELETE | 495 ? FileChange::CHANGE_TYPE_DELETE |
496 : FileChange::CHANGE_TYPE_ADD_OR_UPDATE; | 496 : FileChange::CHANGE_TYPE_ADD_OR_UPDATE; |
497 changed_files_->Update(file_path, entry, type); | 497 changed_files_->Update(file_path, entry, type); |
498 } | 498 } |
499 } | 499 } |
500 | 500 |
501 } // namespace internal | 501 } // namespace internal |
502 } // namespace drive | 502 } // namespace drive |
OLD | NEW |