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/generic_change_processor.h" | 5 #include "chrome/browser/sync/glue/generic_change_processor.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/sync/api/sync_change.h" | 10 #include "chrome/browser/sync/api/sync_change.h" |
11 #include "chrome/browser/sync/api/sync_error.h" | 11 #include "chrome/browser/sync/api/sync_error.h" |
12 #include "chrome/browser/sync/api/syncable_service.h" | 12 #include "chrome/browser/sync/api/syncable_service.h" |
13 #include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.
h" | |
14 #include "chrome/browser/sync/internal_api/base_node.h" | 13 #include "chrome/browser/sync/internal_api/base_node.h" |
15 #include "chrome/browser/sync/internal_api/change_record.h" | 14 #include "chrome/browser/sync/internal_api/change_record.h" |
16 #include "chrome/browser/sync/internal_api/read_node.h" | 15 #include "chrome/browser/sync/internal_api/read_node.h" |
17 #include "chrome/browser/sync/internal_api/read_transaction.h" | 16 #include "chrome/browser/sync/internal_api/read_transaction.h" |
18 #include "chrome/browser/sync/internal_api/write_node.h" | 17 #include "chrome/browser/sync/internal_api/write_node.h" |
19 #include "chrome/browser/sync/internal_api/write_transaction.h" | 18 #include "chrome/browser/sync/internal_api/write_transaction.h" |
20 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "sync/util/unrecoverable_error_handler.h" |
21 | 21 |
22 using content::BrowserThread; | 22 using content::BrowserThread; |
23 | 23 |
24 namespace browser_sync { | 24 namespace browser_sync { |
25 | 25 |
26 GenericChangeProcessor::GenericChangeProcessor( | 26 GenericChangeProcessor::GenericChangeProcessor( |
27 DataTypeErrorHandler* error_handler, | 27 DataTypeErrorHandler* error_handler, |
28 const base::WeakPtr<SyncableService>& local_service, | 28 const base::WeakPtr<SyncableService>& local_service, |
29 sync_api::UserShare* user_share) | 29 sync_api::UserShare* user_share) |
30 : ChangeProcessor(error_handler), | 30 : ChangeProcessor(error_handler), |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 void GenericChangeProcessor::StopImpl() { | 268 void GenericChangeProcessor::StopImpl() { |
269 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 269 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
270 } | 270 } |
271 | 271 |
272 sync_api::UserShare* GenericChangeProcessor::share_handle() const { | 272 sync_api::UserShare* GenericChangeProcessor::share_handle() const { |
273 DCHECK(CalledOnValidThread()); | 273 DCHECK(CalledOnValidThread()); |
274 return share_handle_; | 274 return share_handle_; |
275 } | 275 } |
276 | 276 |
277 } // namespace browser_sync | 277 } // namespace browser_sync |
OLD | NEW |