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

Unified Diff: chrome/browser/sync/engine/syncapi.h

Issue 6690020: sync: hook up ServerConnectionManager <> SyncerThread2 and tie up more loose ends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/debug
Patch Set: rebase Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/engine/syncapi.h
diff --git a/chrome/browser/sync/engine/syncapi.h b/chrome/browser/sync/engine/syncapi.h
index 0d0d6910f4056c73d21e0d845ec0d1aac48671db..3f2cd00d41c5bfcaae57bcc5ca78559cb4aeadc9 100644
--- a/chrome/browser/sync/engine/syncapi.h
+++ b/chrome/browser/sync/engine/syncapi.h
@@ -43,6 +43,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/gtest_prod_util.h"
#include "base/scoped_ptr.h"
#include "build/build_config.h"
@@ -828,6 +829,8 @@ class SyncManager {
virtual ~Observer();
};
+ typedef Callback0::Type ModeChangeCallback;
+
// Create an uninitialized SyncManager. Callers must Init() before using.
SyncManager();
virtual ~SyncManager();
@@ -925,6 +928,12 @@ class SyncManager {
// TODO(tim): Deprecated.
bool RequestResume();
+ // Puts the SyncerThread into a mode where no normal nudge or poll traffic
+ // will occur, but calls to RequestConfig will be supported. If |callback|
+ // is provided, it will be invoked (from the internal SyncerThread) when
+ // the thread has changed to configuration mode.
+ void StartConfigurationMode(ModeChangeCallback* callback);
+
// For the new SyncerThread impl, this switches the mode of operation to
// CONFIGURATION_MODE and schedules a config task to fetch updates for
// |types|. It is an error to call this with legacy SyncerThread in use.

Powered by Google App Engine
This is Rietveld 408576698