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/sync/glue/data_type_manager.h" | 5 #include "chrome/browser/sync/glue/data_type_manager.h" |
6 | 6 |
7 namespace browser_sync { | 7 namespace browser_sync { |
8 | 8 |
9 DataTypeManager::ConfigureResult::ConfigureResult() | 9 DataTypeManager::ConfigureResult::ConfigureResult() |
10 : status(UNKNOWN) {} | 10 : status(UNKNOWN) {} |
11 | 11 |
12 DataTypeManager::ConfigureResult::ConfigureResult(ConfigureStatus status, | 12 DataTypeManager::ConfigureResult::ConfigureResult(ConfigureStatus status, |
13 TypeSet requested_types) | 13 TypeSet requested_types) |
14 : status(status), | 14 : status(status), |
15 requested_types(requested_types) { | 15 requested_types(requested_types) { |
16 DCHECK_EQ(OK, status); | 16 DCHECK_EQ(OK, status); |
17 } | 17 } |
18 | 18 |
19 DataTypeManager::ConfigureResult::ConfigureResult( | 19 DataTypeManager::ConfigureResult::ConfigureResult( |
20 ConfigureStatus status, | 20 ConfigureStatus status, |
21 TypeSet requested_types, | 21 TypeSet requested_types, |
22 const std::list<SyncError>& failed_data_types, | 22 const std::list<csync::SyncError>& failed_data_types, |
23 syncable::ModelTypeSet waiting_to_start) | 23 syncable::ModelTypeSet waiting_to_start) |
24 : status(status), | 24 : status(status), |
25 requested_types(requested_types), | 25 requested_types(requested_types), |
26 failed_data_types(failed_data_types), | 26 failed_data_types(failed_data_types), |
27 waiting_to_start(waiting_to_start) { | 27 waiting_to_start(waiting_to_start) { |
28 if (!failed_data_types.empty()) { | 28 if (!failed_data_types.empty()) { |
29 DCHECK_NE(OK, status); | 29 DCHECK_NE(OK, status); |
30 } | 30 } |
31 } | 31 } |
32 | 32 |
(...skipping 11 matching lines...) Expand all Loading... |
44 return "Unrecoverable Error"; | 44 return "Unrecoverable Error"; |
45 case PARTIAL_SUCCESS: | 45 case PARTIAL_SUCCESS: |
46 return "Partial Success"; | 46 return "Partial Success"; |
47 default: | 47 default: |
48 NOTREACHED(); | 48 NOTREACHED(); |
49 return std::string(); | 49 return std::string(); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 } // namespace browser_sync | 53 } // namespace browser_sync |
OLD | NEW |