| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/synchronization/condition_variable.h" |
| 10 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 11 #include "base/synchronization/condition_variable.h" | |
| 12 #include "base/task.h" | 12 #include "base/task.h" |
| 13 #include "chrome/browser/sync/engine/syncapi.h" | |
| 14 #include "chrome/browser/sync/engine/model_safe_worker.h" | 13 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 class WaitableEvent; | 16 class WaitableEvent; |
| 18 } | 17 } |
| 19 | 18 |
| 20 class MessageLoop; | 19 class MessageLoop; |
| 21 | 20 |
| 22 namespace browser_sync { | 21 namespace browser_sync { |
| 23 | 22 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // SyncerThread has terminated. We only care about (1) when we are in Stop(), | 123 // SyncerThread has terminated. We only care about (1) when we are in Stop(), |
| 125 // because we have to manually Run() the task. | 124 // because we have to manually Run() the task. |
| 126 base::ConditionVariable syncapi_event_; | 125 base::ConditionVariable syncapi_event_; |
| 127 | 126 |
| 128 DISALLOW_COPY_AND_ASSIGN(UIModelWorker); | 127 DISALLOW_COPY_AND_ASSIGN(UIModelWorker); |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace browser_sync | 130 } // namespace browser_sync |
| 132 | 131 |
| 133 #endif // CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ | 132 #endif // CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ |
| OLD | NEW |