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

Side by Side Diff: sync/internal_api/public/engine/sync_status.h

Issue 10700180: [Sync] Add sync_export.h (Step 1 for componentizing sync) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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
« no previous file with comments | « sync/internal_api/public/engine/polling_constants.h ('k') | sync/sync.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sync/base/sync_export.h"
10 #include "sync/internal_api/public/base/model_type.h" 11 #include "sync/internal_api/public/base/model_type.h"
11 #include "sync/protocol/sync_protocol_error.h" 12 #include "sync/protocol/sync_protocol_error.h"
12 13
13 namespace syncer { 14 namespace syncer {
14 15
15 // Status encapsulates detailed state about the internals of the SyncManager. 16 // Status encapsulates detailed state about the internals of the SyncManager.
16 // 17 //
17 // This struct is closely tied to the AllStatus object which uses instances of 18 // This struct is closely tied to the AllStatus object which uses instances of
18 // it to track and report on the sync engine's internal state, and the functions 19 // it to track and report on the sync engine's internal state, and the functions
19 // in sync_ui_util.cc which convert the contents of this struct into a 20 // in sync_ui_util.cc which convert the contents of this struct into a
20 // DictionaryValue used to populate the about:sync summary tab. 21 // DictionaryValue used to populate the about:sync summary tab.
21 struct SyncStatus { 22 struct SYNC_EXPORT SyncStatus {
22 SyncStatus(); 23 SyncStatus();
23 ~SyncStatus(); 24 ~SyncStatus();
24 25
25 // TODO(akalin): Replace this with a NotificationsDisabledReason 26 // TODO(akalin): Replace this with a NotificationsDisabledReason
26 // variable. 27 // variable.
27 bool notifications_enabled; // True only if subscribed for notifications. 28 bool notifications_enabled; // True only if subscribed for notifications.
28 29
29 // Notifications counters updated by the actions in synapi. 30 // Notifications counters updated by the actions in synapi.
30 int notifications_received; 31 int notifications_received;
31 32
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Per-datatype throttled status. 88 // Per-datatype throttled status.
88 syncer::ModelTypeSet throttled_types; 89 syncer::ModelTypeSet throttled_types;
89 90
90 // The unique identifer for this client. 91 // The unique identifer for this client.
91 std::string unique_id; 92 std::string unique_id;
92 }; 93 };
93 94
94 } // namespace syncer 95 } // namespace syncer
95 96
96 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ 97 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/engine/polling_constants.h ('k') | sync/sync.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698