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/file_cache.h" | 5 #include "chrome/browser/chromeos/drive/file_cache.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/sys_info.h" | 19 #include "base/sys_info.h" |
20 #include "chrome/browser/chromeos/drive/drive.pb.h" | 20 #include "chrome/browser/chromeos/drive/drive.pb.h" |
21 #include "chrome/browser/chromeos/drive/file_system_util.h" | 21 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
22 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" | 22 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" |
23 #include "chrome/browser/drive/drive_api_util.h" | 23 #include "chrome/browser/drive/drive_api_util.h" |
24 #include "chromeos/chromeos_constants.h" | 24 #include "chromeos/chromeos_constants.h" |
25 #include "google_apis/drive/task_util.h" | 25 #include "google_apis/drive/task_util.h" |
26 #include "net/base/filename_util.h" | 26 #include "net/base/filename_util.h" |
27 #include "net/base/mime_sniffer.h" | 27 #include "net/base/mime_sniffer.h" |
28 #include "net/base/mime_util.h" | 28 #include "net/base/mime_util.h" |
29 #include "third_party/cros_system_api/constants/cryptohome.h" | 29 #include "third_party/cros_system_api/constants/cryptohome.h" |
30 | 30 |
31 namespace drive { | 31 namespace drive { |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 base::Time::Now().ToInternalValue()); | 608 base::Time::Now().ToInternalValue()); |
609 error = storage_->PutEntry(entry); | 609 error = storage_->PutEntry(entry); |
610 if (error != FILE_ERROR_OK) { | 610 if (error != FILE_ERROR_OK) { |
611 LOG(ERROR) << "Failed to put entry: " << id << ", " | 611 LOG(ERROR) << "Failed to put entry: " << id << ", " |
612 << FileErrorToString(error); | 612 << FileErrorToString(error); |
613 } | 613 } |
614 } | 614 } |
615 | 615 |
616 } // namespace internal | 616 } // namespace internal |
617 } // namespace drive | 617 } // namespace drive |
OLD | NEW |