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/backend_migrator.h" | 5 #include "chrome/browser/sync/backend_migrator.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
9 #include "base/tracked_objects.h" | 9 #include "base/tracked_objects.h" |
10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
12 #include "content/public/browser/notification_details.h" | 12 #include "content/public/browser/notification_details.h" |
13 #include "content/public/browser/notification_source.h" | 13 #include "content/public/browser/notification_source.h" |
14 #include "sync/internal_api/configure_reason.h" | 14 #include "sync/internal_api/configure_reason.h" |
15 #include "sync/internal_api/read_transaction.h" | 15 #include "sync/internal_api/read_transaction.h" |
16 #include "sync/protocol/sync.pb.h" | 16 #include "sync/protocol/sync.pb.h" |
17 #include "sync/sessions/session_state.h" | 17 #include "sync/sessions/session_state.h" |
18 | 18 |
19 using syncable::ModelTypeSet; | 19 using syncable::ModelTypeSet; |
20 | 20 |
21 namespace browser_sync { | 21 namespace browser_sync { |
22 | 22 |
23 using sessions::SyncSessionSnapshot; | |
24 using syncable::ModelTypeToString; | 23 using syncable::ModelTypeToString; |
25 | 24 |
26 MigrationObserver::~MigrationObserver() {} | 25 MigrationObserver::~MigrationObserver() {} |
27 | 26 |
28 BackendMigrator::BackendMigrator(const std::string& name, | 27 BackendMigrator::BackendMigrator(const std::string& name, |
29 sync_api::UserShare* user_share, | 28 sync_api::UserShare* user_share, |
30 ProfileSyncService* service, | 29 ProfileSyncService* service, |
31 DataTypeManager* manager, | 30 DataTypeManager* manager, |
32 const base::Closure &migration_done_callback) | 31 const base::Closure &migration_done_callback) |
33 : name_(name), user_share_(user_share), service_(service), | 32 : name_(name), user_share_(user_share), service_(service), |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 syncable::ModelTypeSet | 229 syncable::ModelTypeSet |
231 BackendMigrator::GetPendingMigrationTypesForTest() const { | 230 BackendMigrator::GetPendingMigrationTypesForTest() const { |
232 return to_migrate_; | 231 return to_migrate_; |
233 } | 232 } |
234 | 233 |
235 #undef SDVLOG | 234 #undef SDVLOG |
236 | 235 |
237 #undef SLOG | 236 #undef SLOG |
238 | 237 |
239 }; // namespace browser_sync | 238 }; // namespace browser_sync |
OLD | NEW |