Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 package org.mozilla.gecko.background.testhelpers;
6 import java.net.URI;
8 import org.mozilla.gecko.sync.GlobalSession;
9 import org.mozilla.gecko.sync.delegates.GlobalSessionCallback;
10 import org.mozilla.gecko.sync.stage.GlobalSyncStage.Stage;
12 public class DefaultGlobalSessionCallback implements GlobalSessionCallback {
14 @Override
15 public void requestBackoff(long backoff) {
16 }
18 @Override
19 public boolean wantNodeAssignment() {
20 return false;
21 }
23 @Override
24 public void informUnauthorizedResponse(GlobalSession globalSession,
25 URI oldClusterURL) {
26 }
28 @Override
29 public void informNodeAssigned(GlobalSession globalSession,
30 URI oldClusterURL, URI newClusterURL) {
31 }
33 @Override
34 public void informNodeAuthenticationFailed(GlobalSession globalSession,
35 URI failedClusterURL) {
36 }
38 @Override
39 public void informUpgradeRequiredResponse(GlobalSession session) {
40 }
42 @Override
43 public void handleAborted(GlobalSession globalSession, String reason) {
44 }
46 @Override
47 public void handleError(GlobalSession globalSession, Exception ex) {
48 }
50 @Override
51 public void handleSuccess(GlobalSession globalSession) {
52 }
54 @Override
55 public void handleStageCompleted(Stage currentState,
56 GlobalSession globalSession) {
57 }
59 @Override
60 public boolean shouldBackOffStorage() {
61 return false;
62 }
64 @Override
65 public String nodeWeaveURL() {
66 return null;
67 }
68 }