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

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

Issue 8470005: Add OVERRIDE to chrome/browser/sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 9 years, 1 month 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
11 11
12 #include <map> 12 #include <map>
13 13
14 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
16 #include "chrome/browser/sync/engine/syncer_types.h" 17 #include "chrome/browser/sync/engine/syncer_types.h"
17 #include "chrome/browser/sync/internal_api/sync_manager.h" 18 #include "chrome/browser/sync/internal_api/sync_manager.h"
18 #include "chrome/browser/sync/syncable/model_type.h" 19 #include "chrome/browser/sync/syncable/model_type.h"
19 20
20 namespace browser_sync { 21 namespace browser_sync {
21 22
22 class ScopedStatusLock; 23 class ScopedStatusLock;
23 struct AuthWatcherEvent; 24 struct AuthWatcherEvent;
24 struct ServerConnectionEvent; 25 struct ServerConnectionEvent;
25 26
26 class AllStatus : public SyncEngineEventListener { 27 class AllStatus : public SyncEngineEventListener {
27 friend class ScopedStatusLock; 28 friend class ScopedStatusLock;
28 public: 29 public:
29 AllStatus(); 30 AllStatus();
30 virtual ~AllStatus(); 31 virtual ~AllStatus();
31 32
32 void HandleServerConnectionEvent(const ServerConnectionEvent& event); 33 void HandleServerConnectionEvent(const ServerConnectionEvent& event);
33 34
34 void HandleAuthWatcherEvent(const AuthWatcherEvent& event); 35 void HandleAuthWatcherEvent(const AuthWatcherEvent& event);
35 36
36 virtual void OnSyncEngineEvent(const SyncEngineEvent& event); 37 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE;
37 38
38 sync_api::SyncManager::Status status() const; 39 sync_api::SyncManager::Status status() const;
39 40
40 void SetNotificationsEnabled(bool notifications_enabled); 41 void SetNotificationsEnabled(bool notifications_enabled);
41 42
42 void IncrementNotifiableCommits(); 43 void IncrementNotifiableCommits();
43 44
44 void IncrementNotificationsReceived(); 45 void IncrementNotificationsReceived();
45 46
46 void SetEncryptedTypes(const syncable::ModelTypeSet& types); 47 void SetEncryptedTypes(const syncable::ModelTypeSet& types);
(...skipping 21 matching lines...) Expand all
68 public: 69 public:
69 explicit ScopedStatusLock(AllStatus* allstatus); 70 explicit ScopedStatusLock(AllStatus* allstatus);
70 ~ScopedStatusLock(); 71 ~ScopedStatusLock();
71 protected: 72 protected:
72 AllStatus* allstatus_; 73 AllStatus* allstatus_;
73 }; 74 };
74 75
75 } // namespace browser_sync 76 } // namespace browser_sync
76 77
77 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ 78 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/abstract_profile_sync_service_test.h ('k') | chrome/browser/sync/engine/apply_updates_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698