| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class Syncer; | 23 class Syncer; |
| 24 class SyncerThread; | 24 class SyncerThread; |
| 25 struct AuthWatcherEvent; | 25 struct AuthWatcherEvent; |
| 26 struct ServerConnectionEvent; | 26 struct ServerConnectionEvent; |
| 27 | 27 |
| 28 class AllStatus : public SyncEngineEventListener { | 28 class AllStatus : public SyncEngineEventListener { |
| 29 friend class ScopedStatusLock; | 29 friend class ScopedStatusLock; |
| 30 public: | 30 public: |
| 31 | 31 |
| 32 AllStatus(); | 32 AllStatus(); |
| 33 ~AllStatus(); | 33 virtual ~AllStatus(); |
| 34 | 34 |
| 35 void HandleServerConnectionEvent(const ServerConnectionEvent& event); | 35 void HandleServerConnectionEvent(const ServerConnectionEvent& event); |
| 36 | 36 |
| 37 void HandleAuthWatcherEvent(const AuthWatcherEvent& event); | 37 void HandleAuthWatcherEvent(const AuthWatcherEvent& event); |
| 38 | 38 |
| 39 virtual void OnSyncEngineEvent(const SyncEngineEvent& event); | 39 virtual void OnSyncEngineEvent(const SyncEngineEvent& event); |
| 40 | 40 |
| 41 sync_api::SyncManager::Status status() const; | 41 sync_api::SyncManager::Status status() const; |
| 42 | 42 |
| 43 void SetNotificationsEnabled(bool notifications_enabled); | 43 void SetNotificationsEnabled(bool notifications_enabled); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 65 public: | 65 public: |
| 66 explicit ScopedStatusLock(AllStatus* allstatus); | 66 explicit ScopedStatusLock(AllStatus* allstatus); |
| 67 ~ScopedStatusLock(); | 67 ~ScopedStatusLock(); |
| 68 protected: | 68 protected: |
| 69 AllStatus* allstatus_; | 69 AllStatus* allstatus_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace browser_sync | 72 } // namespace browser_sync |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 74 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
| OLD | NEW |