OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INTERNAL_API_ALL_STATUS_H_ |
9 #define CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 9 #define CHROME_BROWSER_SYNC_INTERNAL_API_ALL_STATUS_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "chrome/browser/sync/engine/syncer_types.h" | |
18 #include "chrome/browser/sync/internal_api/sync_manager.h" | 17 #include "chrome/browser/sync/internal_api/sync_manager.h" |
19 #include "chrome/browser/sync/syncable/model_type.h" | 18 #include "sync/engine/syncer_types.h" |
| 19 #include "sync/syncable/model_type.h" |
20 | 20 |
21 namespace browser_sync { | 21 namespace browser_sync { |
22 | 22 |
23 class ScopedStatusLock; | 23 class ScopedStatusLock; |
24 struct ServerConnectionEvent; | 24 struct ServerConnectionEvent; |
25 | 25 |
26 // TODO(rlarocque): | 26 // TODO(rlarocque): |
27 // Most of this data ends up on the about:sync page. But the page is only | 27 // Most of this data ends up on the about:sync page. But the page is only |
28 // 'pinged' to update itself at the end of a sync cycle. A user could refresh | 28 // 'pinged' to update itself at the end of a sync cycle. A user could refresh |
29 // manually, but unless their timing is excellent it's unlikely that a user will | 29 // manually, but unless their timing is excellent it's unlikely that a user will |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 class ScopedStatusLock { | 76 class ScopedStatusLock { |
77 public: | 77 public: |
78 explicit ScopedStatusLock(AllStatus* allstatus); | 78 explicit ScopedStatusLock(AllStatus* allstatus); |
79 ~ScopedStatusLock(); | 79 ~ScopedStatusLock(); |
80 protected: | 80 protected: |
81 AllStatus* allstatus_; | 81 AllStatus* allstatus_; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace browser_sync | 84 } // namespace browser_sync |
85 | 85 |
86 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 86 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_ALL_STATUS_H_ |
OLD | NEW |