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

Side by Side Diff: components/sync/driver/data_type_status_table.h

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 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/api/sync_error.h"
12 #include "components/sync/base/model_type.h"
12 13
13 namespace sync_driver { 14 namespace sync_driver {
14 15
15 // Class to keep track of data types that have encountered an error during sync. 16 // Class to keep track of data types that have encountered an error during sync.
16 class DataTypeStatusTable { 17 class DataTypeStatusTable {
17 public: 18 public:
18 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; 19 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap;
19 20
20 DataTypeStatusTable(); 21 DataTypeStatusTable();
21 DataTypeStatusTable(const DataTypeStatusTable& other); 22 DataTypeStatusTable(const DataTypeStatusTable& other);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 TypeErrorMap persistence_errors_; 90 TypeErrorMap persistence_errors_;
90 91
91 // List of data types that could not start due to not being ready. These can 92 // List of data types that could not start due to not being ready. These can
92 // be marked as ready by calling ResetUnreadyErrorFor(..). 93 // be marked as ready by calling ResetUnreadyErrorFor(..).
93 TypeErrorMap unready_errors_; 94 TypeErrorMap unready_errors_;
94 }; 95 };
95 96
96 } // namespace sync_driver 97 } // namespace sync_driver
97 98
98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ 99 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/data_type_manager_impl.cc ('k') | components/sync/driver/data_type_status_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698