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

Side by Side Diff: sync/internal_api/all_status.h

Issue 10534080: sync: move internal_api components used by chrome/browser into internal_api/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init Created 8 years, 6 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) 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 SYNC_INTERNAL_API_ALL_STATUS_H_ 8 #ifndef SYNC_INTERNAL_API_ALL_STATUS_H_
9 #define SYNC_INTERNAL_API_ALL_STATUS_H_ 9 #define SYNC_INTERNAL_API_ALL_STATUS_H_
10 #pragma once 10 #pragma once
11 11
12 #include <map> 12 #include <map>
13 #include <string> 13 #include <string>
14 14
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "sync/engine/sync_engine_event.h" 17 #include "sync/engine/sync_engine_event.h"
18 #include "sync/engine/syncer_types.h" 18 #include "sync/engine/syncer_types.h"
19 #include "sync/internal_api/public/sync_manager.h"
19 #include "sync/internal_api/public/syncable/model_type.h" 20 #include "sync/internal_api/public/syncable/model_type.h"
20 #include "sync/internal_api/sync_manager.h"
21 21
22 namespace browser_sync { 22 namespace browser_sync {
23 23
24 class ScopedStatusLock; 24 class ScopedStatusLock;
25 struct ServerConnectionEvent; 25 struct ServerConnectionEvent;
26 26
27 // TODO(rlarocque): 27 // TODO(rlarocque):
28 // Most of this data ends up on the about:sync page. But the page is only 28 // Most of this data ends up on the about:sync page. But the page is only
29 // 'pinged' to update itself at the end of a sync cycle. A user could refresh 29 // 'pinged' to update itself at the end of a sync cycle. A user could refresh
30 // manually, but unless their timing is excellent it's unlikely that a user will 30 // manually, but unless their timing is excellent it's unlikely that a user will
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 public: 73 public:
74 explicit ScopedStatusLock(AllStatus* allstatus); 74 explicit ScopedStatusLock(AllStatus* allstatus);
75 ~ScopedStatusLock(); 75 ~ScopedStatusLock();
76 protected: 76 protected:
77 AllStatus* allstatus_; 77 AllStatus* allstatus_;
78 }; 78 };
79 79
80 } // namespace browser_sync 80 } // namespace browser_sync
81 81
82 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_ 82 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698