| OLD | NEW |
| 1 // Copyright (c) 2011 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 // The AllStatus object watches various sync engine components and aggregates | 5 // The AllStatus object watches various sync engine components and aggregates |
| 6 // the status of all of them into one place. | 6 // the status of all of them into one place. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 8 #ifndef CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
| 9 #define CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 9 #define CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include <map> | 12 #include <map> |
| 13 | 13 |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "chrome/browser/sync/engine/syncapi.h" | |
| 17 #include "chrome/browser/sync/engine/syncer_types.h" | 16 #include "chrome/browser/sync/engine/syncer_types.h" |
| 17 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 18 #include "chrome/browser/sync/syncable/model_type.h" | 18 #include "chrome/browser/sync/syncable/model_type.h" |
| 19 | 19 |
| 20 namespace browser_sync { | 20 namespace browser_sync { |
| 21 | 21 |
| 22 class ScopedStatusLock; | 22 class ScopedStatusLock; |
| 23 class ServerConnectionManager; | 23 class ServerConnectionManager; |
| 24 class Syncer; | 24 class Syncer; |
| 25 class SyncerThread; | 25 class SyncerThread; |
| 26 struct AuthWatcherEvent; | 26 struct AuthWatcherEvent; |
| 27 struct ServerConnectionEvent; | 27 struct ServerConnectionEvent; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 public: | 70 public: |
| 71 explicit ScopedStatusLock(AllStatus* allstatus); | 71 explicit ScopedStatusLock(AllStatus* allstatus); |
| 72 ~ScopedStatusLock(); | 72 ~ScopedStatusLock(); |
| 73 protected: | 73 protected: |
| 74 AllStatus* allstatus_; | 74 AllStatus* allstatus_; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace browser_sync | 77 } // namespace browser_sync |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 79 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
| OLD | NEW |