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

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

Issue 7550023: [Sync] Add passphrase/encryption info to chrome://sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix restart case Created 9 years, 4 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 // This file defines the "sync API", an interface to the syncer 5 // This file defines the "sync API", an interface to the syncer
6 // backend that exposes (1) the core functionality of maintaining a consistent 6 // backend that exposes (1) the core functionality of maintaining a consistent
7 // local snapshot of a hierarchical object set; (2) a means to transactionally 7 // local snapshot of a hierarchical object set; (2) a means to transactionally
8 // access and modify those objects; (3) a means to control client/server 8 // access and modify those objects; (3) a means to control client/server
9 // synchronization tasks, namely: pushing local object modifications to a 9 // synchronization tasks, namely: pushing local object modifications to a
10 // server, pulling nonlocal object modifications from a server to this client, 10 // server, pulling nonlocal object modifications from a server to this client,
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 int num_local_overwrites_total; 738 int num_local_overwrites_total;
739 int num_server_overwrites_total; 739 int num_server_overwrites_total;
740 740
741 // Count of empty and non empty getupdates; 741 // Count of empty and non empty getupdates;
742 int nonempty_get_updates; 742 int nonempty_get_updates;
743 int empty_get_updates; 743 int empty_get_updates;
744 744
745 // Count of useless and useful syncs we perform. 745 // Count of useless and useful syncs we perform.
746 int useless_sync_cycles; 746 int useless_sync_cycles;
747 int useful_sync_cycles; 747 int useful_sync_cycles;
748
749 // Encryption related.
750 bool encrypt_everything;
751 bool cryptographer_ready;
748 }; 752 };
749 753
750 // An interface the embedding application implements to receive notifications 754 // An interface the embedding application implements to receive notifications
751 // from the SyncManager. Register an observer via SyncManager::AddObserver. 755 // from the SyncManager. Register an observer via SyncManager::AddObserver.
752 // This observer is an event driven model as the events may be raised from 756 // This observer is an event driven model as the events may be raised from
753 // different internal threads, and simply providing an "OnStatusChanged" type 757 // different internal threads, and simply providing an "OnStatusChanged" type
754 // notification complicates things such as trying to determine "what changed", 758 // notification complicates things such as trying to determine "what changed",
755 // if different members of the Status object are modified from different 759 // if different members of the Status object are modified from different
756 // threads. This way, the event is explicit, and it is safe for the Observer 760 // threads. This way, the event is explicit, and it is safe for the Observer
757 // to dispatch to a native thread or synchronize accordingly. 761 // to dispatch to a native thread or synchronize accordingly.
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 private: 1074 private:
1071 // An opaque pointer to the nested private class. 1075 // An opaque pointer to the nested private class.
1072 SyncInternal* data_; 1076 SyncInternal* data_;
1073 1077
1074 DISALLOW_COPY_AND_ASSIGN(SyncManager); 1078 DISALLOW_COPY_AND_ASSIGN(SyncManager);
1075 }; 1079 };
1076 1080
1077 } // namespace sync_api 1081 } // namespace sync_api
1078 1082
1079 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ 1083 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698