| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_thread_model_worker.h" | 5 #include "chrome/browser/sync/glue/browser_thread_model_worker.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
| 9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 | 10 |
| 11 using base::WaitableEvent; | 11 using base::WaitableEvent; |
| 12 using content::BrowserThread; |
| 12 | 13 |
| 13 namespace browser_sync { | 14 namespace browser_sync { |
| 14 | 15 |
| 15 BrowserThreadModelWorker::BrowserThreadModelWorker( | 16 BrowserThreadModelWorker::BrowserThreadModelWorker( |
| 16 BrowserThread::ID thread, ModelSafeGroup group) | 17 BrowserThread::ID thread, ModelSafeGroup group) |
| 17 : thread_(thread), group_(group) {} | 18 : thread_(thread), group_(group) {} |
| 18 | 19 |
| 19 BrowserThreadModelWorker::~BrowserThreadModelWorker() {} | 20 BrowserThreadModelWorker::~BrowserThreadModelWorker() {} |
| 20 | 21 |
| 21 UnrecoverableErrorInfo BrowserThreadModelWorker::DoWorkAndWaitUntilDone( | 22 UnrecoverableErrorInfo BrowserThreadModelWorker::DoWorkAndWaitUntilDone( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 FileModelWorker::~FileModelWorker() {} | 70 FileModelWorker::~FileModelWorker() {} |
| 70 | 71 |
| 71 void FileModelWorker::CallDoWorkAndSignalTask( | 72 void FileModelWorker::CallDoWorkAndSignalTask( |
| 72 const WorkCallback& work, | 73 const WorkCallback& work, |
| 73 WaitableEvent* done, | 74 WaitableEvent* done, |
| 74 UnrecoverableErrorInfo* error_info) { | 75 UnrecoverableErrorInfo* error_info) { |
| 75 BrowserThreadModelWorker::CallDoWorkAndSignalTask(work, done, error_info); | 76 BrowserThreadModelWorker::CallDoWorkAndSignalTask(work, done, error_info); |
| 76 } | 77 } |
| 77 | 78 |
| 78 } // namespace browser_sync | 79 } // namespace browser_sync |
| OLD | NEW |