Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: components/sync_driver/data_type_status_table.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "components/sync_driver/data_type_manager.h" 11 #include "components/sync_driver/data_type_manager.h"
12 12
13 namespace sync_driver { 13 namespace sync_driver {
14 14
15 // Class to keep track of data types that have encountered an error during sync. 15 // Class to keep track of data types that have encountered an error during sync.
16 class DataTypeStatusTable { 16 class DataTypeStatusTable {
17 public: 17 public:
18 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; 18 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap;
19 19
20 DataTypeStatusTable(); 20 DataTypeStatusTable();
21 DataTypeStatusTable(const DataTypeStatusTable& other);
21 ~DataTypeStatusTable(); 22 ~DataTypeStatusTable();
22 23
23 // Copy and assign welcome. 24 // Copy and assign welcome.
24 25
25 // Update the failed datatypes. Types will be added to their corresponding 26 // Update the failed datatypes. Types will be added to their corresponding
26 // error map based on their |error_type()|. 27 // error map based on their |error_type()|.
27 void UpdateFailedDataTypes(const TypeErrorMap& errors); 28 void UpdateFailedDataTypes(const TypeErrorMap& errors);
28 29
29 // Resets the current set of data type errors. 30 // Resets the current set of data type errors.
30 void Reset(); 31 void Reset();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 TypeErrorMap persistence_errors_; 89 TypeErrorMap persistence_errors_;
89 90
90 // List of data types that could not start due to not being ready. These can 91 // List of data types that could not start due to not being ready. These can
91 // be marked as ready by calling ResetUnreadyErrorFor(..). 92 // be marked as ready by calling ResetUnreadyErrorFor(..).
92 TypeErrorMap unready_errors_; 93 TypeErrorMap unready_errors_;
93 }; 94 };
94 95
95 } // namespace sync_driver 96 } // namespace sync_driver
96 97
97 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ 98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698