| 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 #ifndef CHROME_BROWSER_SYNC_GLUE_BROWSER_THREAD_MODEL_WORKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BROWSER_THREAD_MODEL_WORKER_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_BROWSER_THREAD_MODEL_WORKER_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_BROWSER_THREAD_MODEL_WORKER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/sync/engine/model_safe_worker.h" | |
| 13 #include "chrome/browser/sync/internal_api/includes/syncer_error.h" | |
| 14 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "sync/engine/model_safe_worker.h" |
| 14 #include "sync/util/syncer_error.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class WaitableEvent; | 17 class WaitableEvent; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace browser_sync { | 20 namespace browser_sync { |
| 21 | 21 |
| 22 // A ModelSafeWorker for models that accept requests from the syncapi that need | 22 // A ModelSafeWorker for models that accept requests from the syncapi that need |
| 23 // to be fulfilled on a browser thread, for example autofill on the DB thread. | 23 // to be fulfilled on a browser thread, for example autofill on the DB thread. |
| 24 // TODO(sync): Try to generalize other ModelWorkers (e.g. history, etc). | 24 // TODO(sync): Try to generalize other ModelWorkers (e.g. history, etc). |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 protected: | 72 protected: |
| 73 virtual void CallDoWorkAndSignalTask( | 73 virtual void CallDoWorkAndSignalTask( |
| 74 const WorkCallback& work, | 74 const WorkCallback& work, |
| 75 base::WaitableEvent* done, | 75 base::WaitableEvent* done, |
| 76 SyncerError* error) OVERRIDE; | 76 SyncerError* error) OVERRIDE; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace browser_sync | 79 } // namespace browser_sync |
| 80 | 80 |
| 81 #endif // CHROME_BROWSER_SYNC_GLUE_BROWSER_THREAD_MODEL_WORKER_H_ | 81 #endif // CHROME_BROWSER_SYNC_GLUE_BROWSER_THREAD_MODEL_WORKER_H_ |
| OLD | NEW |