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

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

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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_FAILED_DATA_TYPES_HANDLER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_
6 #define COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/sync_driver/data_type_manager.h" 10 #include "components/sync_driver/data_type_manager.h"
11 11
12 namespace browser_sync { 12 namespace sync_driver {
13 13
14 // Class to keep track of data types that have encountered an error during sync. 14 // Class to keep track of data types that have encountered an error during sync.
15 class FailedDataTypesHandler { 15 class FailedDataTypesHandler {
16 public: 16 public:
17 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; 17 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap;
18 18
19 explicit FailedDataTypesHandler(); 19 explicit FailedDataTypesHandler();
20 ~FailedDataTypesHandler(); 20 ~FailedDataTypesHandler();
21 21
22 // Update the failed datatypes. Types will be added to their corresponding 22 // Update the failed datatypes. Types will be added to their corresponding
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // version of their data. 81 // version of their data.
82 TypeErrorMap persistence_errors_; 82 TypeErrorMap persistence_errors_;
83 83
84 // List of data types that could not start due to not being ready. These can 84 // List of data types that could not start due to not being ready. These can
85 // be marked as ready by calling ResetUnreadyErrorFor(..). 85 // be marked as ready by calling ResetUnreadyErrorFor(..).
86 TypeErrorMap unready_errors_; 86 TypeErrorMap unready_errors_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(FailedDataTypesHandler); 88 DISALLOW_COPY_AND_ASSIGN(FailedDataTypesHandler);
89 }; 89 };
90 90
91 } // namespace browser_sync 91 } // namespace sync_driver
92 92
93 #endif // COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ 93 #endif // COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/data_type_manager_observer.h ('k') | components/sync_driver/failed_data_types_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698