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 "webkit/fileapi/syncable/sync_status_code.h" | 5 #include "webkit/browser/fileapi/syncable/sync_status_code.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 8 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
9 | 9 |
10 namespace sync_file_system { | 10 namespace sync_file_system { |
11 | 11 |
12 std::string SyncStatusCodeToString(SyncStatusCode status) { | 12 std::string SyncStatusCodeToString(SyncStatusCode status) { |
13 switch (status) { | 13 switch (status) { |
14 case SYNC_STATUS_OK: | 14 case SYNC_STATUS_OK: |
15 return "OK."; | 15 return "OK."; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 case base::PLATFORM_FILE_ERROR_NOT_EMPTY: | 136 case base::PLATFORM_FILE_ERROR_NOT_EMPTY: |
137 return SYNC_FILE_ERROR_NOT_EMPTY; | 137 return SYNC_FILE_ERROR_NOT_EMPTY; |
138 case base::PLATFORM_FILE_ERROR_INVALID_URL: | 138 case base::PLATFORM_FILE_ERROR_INVALID_URL: |
139 return SYNC_FILE_ERROR_INVALID_URL; | 139 return SYNC_FILE_ERROR_INVALID_URL; |
140 default: | 140 default: |
141 return SYNC_FILE_ERROR_FAILED; | 141 return SYNC_FILE_ERROR_FAILED; |
142 } | 142 } |
143 } | 143 } |
144 | 144 |
145 } // namespace sync_file_system | 145 } // namespace sync_file_system |
OLD | NEW |