OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/history_model_worker.h" | 5 #include "chrome/browser/sync/glue/history_model_worker.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/task.h" |
9 #include "base/waitable_event.h" | 10 #include "base/waitable_event.h" |
10 #include "chrome/browser/browser_thread.h" | 11 #include "chrome/browser/browser_thread.h" |
11 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
12 | 13 |
13 using base::WaitableEvent; | 14 using base::WaitableEvent; |
14 | 15 |
15 namespace browser_sync { | 16 namespace browser_sync { |
16 | 17 |
17 class WorkerTask : public HistoryDBTask { | 18 class WorkerTask : public HistoryDBTask { |
18 public: | 19 public: |
(...skipping 30 matching lines...) Expand all Loading... |
49 history_service_->ScheduleDBTask(task.get(), this); | 50 history_service_->ScheduleDBTask(task.get(), this); |
50 done.Wait(); | 51 done.Wait(); |
51 } | 52 } |
52 | 53 |
53 bool HistoryModelWorker::CurrentThreadIsWorkThread() { | 54 bool HistoryModelWorker::CurrentThreadIsWorkThread() { |
54 // TODO(ncarter): How to determine this? | 55 // TODO(ncarter): How to determine this? |
55 return true; | 56 return true; |
56 } | 57 } |
57 | 58 |
58 } // namespace browser_sync | 59 } // namespace browser_sync |
OLD | NEW |