| 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/gdata_files.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_files.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 std::string CacheSubDirectoryTypeToString( | 24 std::string CacheSubDirectoryTypeToString( |
| 25 gdata::GDataRootDirectory::CacheSubDirectoryType subdir) { | 25 gdata::GDataRootDirectory::CacheSubDirectoryType subdir) { |
| 26 switch (subdir) { | 26 switch (subdir) { |
| 27 case gdata::GDataRootDirectory::CACHE_TYPE_META: return "meta"; | 27 case gdata::GDataRootDirectory::CACHE_TYPE_META: return "meta"; |
| 28 case gdata::GDataRootDirectory::CACHE_TYPE_PINNED: return "pinned"; | 28 case gdata::GDataRootDirectory::CACHE_TYPE_PINNED: return "pinned"; |
| 29 case gdata::GDataRootDirectory::CACHE_TYPE_OUTGOING: return "outgoing"; | 29 case gdata::GDataRootDirectory::CACHE_TYPE_OUTGOING: return "outgoing"; |
| 30 case gdata::GDataRootDirectory::CACHE_TYPE_PERSISTENT: return "persistent"; | 30 case gdata::GDataRootDirectory::CACHE_TYPE_PERSISTENT: return "persistent"; |
| 31 case gdata::GDataRootDirectory::CACHE_TYPE_TMP: return "tmp"; | 31 case gdata::GDataRootDirectory::CACHE_TYPE_TMP: return "tmp"; |
| 32 case gdata::GDataRootDirectory::CACHE_TYPE_TMP_DOWNLOADS: | 32 case gdata::GDataRootDirectory::CACHE_TYPE_TMP_DOWNLOADS: |
| 33 return "tmp_downloads"; | 33 return "tmp_downloads"; |
| 34 case gdata::GDataRootDirectory::CACHE_TYPE_TMP_DOCUMENTS: |
| 35 return "tmp_documents"; |
| 34 } | 36 } |
| 35 NOTREACHED(); | 37 NOTREACHED(); |
| 36 return "unknown subdir"; | 38 return "unknown subdir"; |
| 37 } | 39 } |
| 38 | 40 |
| 39 } // namespace | 41 } // namespace |
| 40 | 42 |
| 41 namespace gdata { | 43 namespace gdata { |
| 42 | 44 |
| 43 // GDataFileBase class. | 45 // GDataFileBase class. |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 } | 490 } |
| 489 | 491 |
| 490 void GDataRootDirectory::GetCacheState( | 492 void GDataRootDirectory::GetCacheState( |
| 491 const std::string& resource_id, | 493 const std::string& resource_id, |
| 492 const std::string& md5, | 494 const std::string& md5, |
| 493 const GetCacheStateCallback& callback) { | 495 const GetCacheStateCallback& callback) { |
| 494 file_system_->GetCacheState(resource_id, md5, callback); | 496 file_system_->GetCacheState(resource_id, md5, callback); |
| 495 } | 497 } |
| 496 | 498 |
| 497 } // namespace gdata | 499 } // namespace gdata |
| OLD | NEW |