Commit 8252963a authored by akalin@chromium.org's avatar akalin@chromium.org

[Sync] Add comment for SyncBackendHost::OnBackendInitialized

BUG=
TEST=

Review URL: http://codereview.chromium.org/7614001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96587 0039d316-1c4b-4281-b951-d872f2087c98
parent 9fcbae04
...@@ -845,7 +845,8 @@ class SyncManager { ...@@ -845,7 +845,8 @@ class SyncManager {
// WARNING: Calling methods on the SyncManager before receiving this // WARNING: Calling methods on the SyncManager before receiving this
// message, unless otherwise specified, produces undefined behavior. // message, unless otherwise specified, produces undefined behavior.
// //
// The given backend can emit the following events: // |js_backend| is what about:sync interacts with. It can emit
// the following events:
/** /**
* @param {{ enabled: boolean }} details A dictionary containing: * @param {{ enabled: boolean }} details A dictionary containing:
...@@ -861,8 +862,8 @@ class SyncManager { ...@@ -861,8 +862,8 @@ class SyncManager {
*/ */
// function onIncomingNotification(details); // function onIncomingNotification(details);
// The given backend responds to the following messages (all other // Also, it responds to the following messages (all other messages
// messages are ignored): // are ignored):
/** /**
* Gets the current notification state. * Gets the current notification state.
......
...@@ -55,9 +55,13 @@ class SyncFrontend { ...@@ -55,9 +55,13 @@ class SyncFrontend {
public: public:
SyncFrontend() {} SyncFrontend() {}
// The backend has completed initialization and it is now ready to accept and // The backend has completed initialization and it is now ready to
// process changes. If success is false, initialization wasn't able to be // accept and process changes. If success is false, initialization
// completed and should be retried. // wasn't able to be completed and should be retried.
//
// |js_backend| is what about:sync interacts with; it's different
// from the 'Backend' in 'OnBackendInitialized' (unfortunately). It
// is initialized only if |success| is true.
virtual void OnBackendInitialized( virtual void OnBackendInitialized(
const WeakHandle<JsBackend>& js_backend, bool success) = 0; const WeakHandle<JsBackend>& js_backend, bool success) = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment