| 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 COMPONENTS_SYNC_DRIVER_GLUE_UI_MODEL_WORKER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_UI_MODEL_WORKER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_GLUE_UI_MODEL_WORKER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_UI_MODEL_WORKER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "components/sync/engine/model_safe_worker.h" | 11 #include "components/sync/engine/model_safe_worker.h" |
| 12 | 12 |
| 13 namespace syncer { | 13 namespace syncer { |
| 14 | 14 |
| 15 // A ModelSafeWorker for UI models (e.g. bookmarks) that | 15 // A ModelSafeWorker for UI models (e.g. bookmarks) that |
| 16 // accepts work requests from the syncapi that need to be fulfilled | 16 // accepts work requests from the syncapi that need to be fulfilled |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 ~UIModelWorker() override; | 30 ~UIModelWorker() override; |
| 31 | 31 |
| 32 // A reference to the UI thread's task runner. | 32 // A reference to the UI thread's task runner. |
| 33 const scoped_refptr<base::SingleThreadTaskRunner> ui_thread_; | 33 const scoped_refptr<base::SingleThreadTaskRunner> ui_thread_; |
| 34 | 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(UIModelWorker); | 35 DISALLOW_COPY_AND_ASSIGN(UIModelWorker); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace syncer | 38 } // namespace syncer |
| 39 | 39 |
| 40 #endif // COMPONENTS_SYNC_DRIVER_GLUE_UI_MODEL_WORKER_H_ | 40 #endif // COMPONENTS_SYNC_ENGINE_UI_MODEL_WORKER_H_ |
| OLD | NEW |