mobile/android/base/sync/delegates/KeyUploadDelegate.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/sync/delegates/KeyUploadDelegate.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +package org.mozilla.gecko.sync.delegates;
     1.9 +
    1.10 +public interface KeyUploadDelegate {
    1.11 +  /**
    1.12 +   * Called when keys have been successfully uploaded to the server.
    1.13 +   * <p>
    1.14 +   * The uploaded keys are intentionally not exposed. It is possible for two
    1.15 +   * clients to simultaneously upload keys and for each client to conclude that
    1.16 +   * its keys are current (since the server returned 200 on upload). To shorten
    1.17 +   * the window wherein two such clients can race, all clients should upload and
    1.18 +   * then immediately re-download the fetched keys.
    1.19 +   * <p>
    1.20 +   * See Bug 692700, Bug 693893.
    1.21 +   */
    1.22 +  void onKeysUploaded();
    1.23 +  void onKeyUploadFailed(Exception e);
    1.24 +}

mercurial