michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.sync.delegates; michael@0: michael@0: public interface KeyUploadDelegate { michael@0: /** michael@0: * Called when keys have been successfully uploaded to the server. michael@0: *
michael@0: * The uploaded keys are intentionally not exposed. It is possible for two michael@0: * clients to simultaneously upload keys and for each client to conclude that michael@0: * its keys are current (since the server returned 200 on upload). To shorten michael@0: * the window wherein two such clients can race, all clients should upload and michael@0: * then immediately re-download the fetched keys. michael@0: *
michael@0: * See Bug 692700, Bug 693893. michael@0: */ michael@0: void onKeysUploaded(); michael@0: void onKeyUploadFailed(Exception e); michael@0: }