| 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/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 15 #include "chrome/browser/chromeos/gdata/drive.pb.h" | |
| 16 #include "chrome/browser/chromeos/gdata/drive_cache_metadata.h" | 15 #include "chrome/browser/chromeos/gdata/drive_cache_metadata.h" |
| 17 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 16 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 17 #include "chrome/browser/google_apis/drive.pb.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
| 20 #include "chrome/common/chrome_paths_internal.h" | 20 #include "chrome/common/chrome_paths_internal.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 | 22 |
| 23 using content::BrowserThread; | 23 using content::BrowserThread; |
| 24 | 24 |
| 25 namespace gdata { | 25 namespace gdata { |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| (...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 const DriveCacheEntry& cache_entry) { | 1578 const DriveCacheEntry& cache_entry) { |
| 1579 return cache_entry.is_persistent() ? CACHE_TYPE_PERSISTENT : CACHE_TYPE_TMP; | 1579 return cache_entry.is_persistent() ? CACHE_TYPE_PERSISTENT : CACHE_TYPE_TMP; |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 void SetFreeDiskSpaceGetterForTesting(FreeDiskSpaceGetterInterface* getter) { | 1582 void SetFreeDiskSpaceGetterForTesting(FreeDiskSpaceGetterInterface* getter) { |
| 1583 delete global_free_disk_getter_for_testing; // Safe to delete NULL; | 1583 delete global_free_disk_getter_for_testing; // Safe to delete NULL; |
| 1584 global_free_disk_getter_for_testing = getter; | 1584 global_free_disk_getter_for_testing = getter; |
| 1585 } | 1585 } |
| 1586 | 1586 |
| 1587 } // namespace gdata | 1587 } // namespace gdata |
| OLD | NEW |