| OLD | NEW |
| 1 // Copyright (c) 2009 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 // A class to run the syncer on a thread. | 5 // A class to run the syncer on a thread. |
| 6 // This is the default implementation of SyncerThread whose Stop implementation | 6 // This is the default implementation of SyncerThread whose Stop implementation |
| 7 // does not support a timeout, but is greatly simplified. | 7 // does not support a timeout, but is greatly simplified. |
| 8 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ | 8 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ |
| 9 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ | 9 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include <list> | 12 #include <list> |
| 13 #include <map> | |
| 14 #include <queue> | 13 #include <queue> |
| 15 #include <vector> | 14 #include <vector> |
| 16 | 15 |
| 17 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| 18 #include "base/condition_variable.h" | 17 #include "base/condition_variable.h" |
| 19 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
| 20 #include "base/ref_counted.h" | 19 #include "base/ref_counted.h" |
| 21 #include "base/scoped_ptr.h" | 20 #include "base/scoped_ptr.h" |
| 22 #include "base/thread.h" | 21 #include "base/thread.h" |
| 23 #include "base/time.h" | 22 #include "base/time.h" |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 348 |
| 350 // Useful for unit tests | 349 // Useful for unit tests |
| 351 bool disable_idle_detection_; | 350 bool disable_idle_detection_; |
| 352 | 351 |
| 353 DISALLOW_COPY_AND_ASSIGN(SyncerThread); | 352 DISALLOW_COPY_AND_ASSIGN(SyncerThread); |
| 354 }; | 353 }; |
| 355 | 354 |
| 356 } // namespace browser_sync | 355 } // namespace browser_sync |
| 357 | 356 |
| 358 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ | 357 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ |
| OLD | NEW |