| 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/gdata/drive_cache.h" | 5 #include "chrome/browser/chromeos/gdata/drive_cache.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/base_paths_posix.h" |
| 9 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 12 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 13 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 14 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
| 15 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 16 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 16 #include "chrome/browser/chromeos/gdata/drive_cache_metadata.h" | 17 #include "chrome/browser/chromeos/gdata/drive_cache_metadata.h" |
| 17 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 18 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| (...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 const DriveCacheEntry& cache_entry) { | 1579 const DriveCacheEntry& cache_entry) { |
| 1579 return cache_entry.is_persistent() ? CACHE_TYPE_PERSISTENT : CACHE_TYPE_TMP; | 1580 return cache_entry.is_persistent() ? CACHE_TYPE_PERSISTENT : CACHE_TYPE_TMP; |
| 1580 } | 1581 } |
| 1581 | 1582 |
| 1582 void SetFreeDiskSpaceGetterForTesting(FreeDiskSpaceGetterInterface* getter) { | 1583 void SetFreeDiskSpaceGetterForTesting(FreeDiskSpaceGetterInterface* getter) { |
| 1583 delete global_free_disk_getter_for_testing; // Safe to delete NULL; | 1584 delete global_free_disk_getter_for_testing; // Safe to delete NULL; |
| 1584 global_free_disk_getter_for_testing = getter; | 1585 global_free_disk_getter_for_testing = getter; |
| 1585 } | 1586 } |
| 1586 | 1587 |
| 1587 } // namespace gdata | 1588 } // namespace gdata |
| OLD | NEW |