OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/atomicops.h" | |
15 #include "base/lock.h" | 14 #include "base/lock.h" |
16 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
17 #include "chrome/browser/sync/util/channel.h" | 16 #include "chrome/browser/sync/util/channel.h" |
18 #include "chrome/common/deprecated/event_sys.h" | 17 #include "chrome/common/deprecated/event_sys.h" |
19 | 18 |
20 namespace browser_sync { | 19 namespace browser_sync { |
21 | 20 |
22 class ScopedStatusLockWithNotify; | 21 class ScopedStatusLockWithNotify; |
23 class ServerConnectionManager; | 22 class ServerConnectionManager; |
24 class Syncer; | 23 class Syncer; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void NotifyOverQuota(); | 178 void NotifyOverQuota(); |
180 protected: | 179 protected: |
181 AllStatusEvent event_; | 180 AllStatusEvent event_; |
182 AllStatus* const allstatus_; | 181 AllStatus* const allstatus_; |
183 StatusNotifyPlan plan_; | 182 StatusNotifyPlan plan_; |
184 }; | 183 }; |
185 | 184 |
186 } // namespace browser_sync | 185 } // namespace browser_sync |
187 | 186 |
188 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 187 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
OLD | NEW |