Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/browser/sync/engine/all_status.h

Issue 9251035: Delete lots of sync ServerConnectionManager code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 23 matching lines...) Expand all
34 // cycle are more visible. Without such a change, the status summary for a 34 // cycle are more visible. Without such a change, the status summary for a
35 // healthy syncer will constantly display as "READY" and never provide any 35 // healthy syncer will constantly display as "READY" and never provide any
36 // indication of a sync cycle being performed. See crbug.com/108100. 36 // indication of a sync cycle being performed. See crbug.com/108100.
37 37
38 class AllStatus : public SyncEngineEventListener { 38 class AllStatus : public SyncEngineEventListener {
39 friend class ScopedStatusLock; 39 friend class ScopedStatusLock;
40 public: 40 public:
41 AllStatus(); 41 AllStatus();
42 virtual ~AllStatus(); 42 virtual ~AllStatus();
43 43
44 void HandleServerConnectionEvent(const ServerConnectionEvent& event);
45
46 void HandleAuthWatcherEvent(const AuthWatcherEvent& event);
47
48 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; 44 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE;
49 45
50 sync_api::SyncManager::Status status() const; 46 sync_api::SyncManager::Status status() const;
51 47
52 void SetNotificationsEnabled(bool notifications_enabled); 48 void SetNotificationsEnabled(bool notifications_enabled);
53 49
54 void IncrementNotifiableCommits(); 50 void IncrementNotifiableCommits();
55 51
56 void IncrementNotificationsReceived(); 52 void IncrementNotificationsReceived();
57 53
(...skipping 22 matching lines...) Expand all
80 public: 76 public:
81 explicit ScopedStatusLock(AllStatus* allstatus); 77 explicit ScopedStatusLock(AllStatus* allstatus);
82 ~ScopedStatusLock(); 78 ~ScopedStatusLock();
83 protected: 79 protected:
84 AllStatus* allstatus_; 80 AllStatus* allstatus_;
85 }; 81 };
86 82
87 } // namespace browser_sync 83 } // namespace browser_sync
88 84
89 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ 85 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698