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

Side by Side Diff: frontend/client/src/autotest/common/JsonRpcProxy.java

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 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 unified diff | Download patch
OLDNEW
1 package autotest.common; 1 package autotest.common;
2 2
3 import autotest.common.ui.NotifyManager; 3 import autotest.common.ui.NotifyManager;
4 4
5 import com.google.gwt.json.client.JSONArray; 5 import com.google.gwt.json.client.JSONArray;
6 import com.google.gwt.json.client.JSONNull; 6 import com.google.gwt.json.client.JSONNull;
7 import com.google.gwt.json.client.JSONNumber; 7 import com.google.gwt.json.client.JSONNumber;
8 import com.google.gwt.json.client.JSONObject; 8 import com.google.gwt.json.client.JSONObject;
9 import com.google.gwt.json.client.JSONString; 9 import com.google.gwt.json.client.JSONString;
10 import com.google.gwt.json.client.JSONValue; 10 import com.google.gwt.json.client.JSONValue;
11 11
12 import java.util.HashMap; 12 import java.util.HashMap;
13 import java.util.Map; 13 import java.util.Map;
14 import java.util.Set; 14 import java.util.Set;
15 15
16 public abstract class JsonRpcProxy { 16 public abstract class JsonRpcProxy {
17 public static final String AFE_BASE_URL = "/afe/server/"; 17 public static final String AFE_BASE_URL = "/afe/server/";
18 public static final String TKO_BASE_URL = "/new_tko/server/"; 18 public static final String TKO_BASE_URL = "/new_tko/server/";
19 public static final String PLANNER_BASE_URL = "/planner/server/";
19 private static final String RPC_URL_SUFFIX = "rpc/"; 20 private static final String RPC_URL_SUFFIX = "rpc/";
20 private static final String JSON_RPC_URL_SUFFIX = "jsonp_rpc/"; 21 private static final String JSON_RPC_URL_SUFFIX = "jsonp_rpc/";
21 22
22 private static String defaultBaseUrl; 23 private static String defaultBaseUrl;
23 private static final Map<String, JsonRpcProxy> instanceMap = 24 private static final Map<String, JsonRpcProxy> instanceMap =
24 new HashMap<String, JsonRpcProxy>(); 25 new HashMap<String, JsonRpcProxy>();
25 protected static final NotifyManager notify = NotifyManager.getInstance(); 26 protected static final NotifyManager notify = NotifyManager.getInstance();
26 27
27 public static void setDefaultBaseUrl(String baseUrl) { 28 public static void setDefaultBaseUrl(String baseUrl) {
28 defaultBaseUrl = baseUrl; 29 defaultBaseUrl = baseUrl;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 97 }
97 else if (error.isObject() != null) { 98 else if (error.isObject() != null) {
98 callback.onError(error.isObject()); 99 callback.onError(error.isObject());
99 return; 100 return;
100 } 101 }
101 102
102 JSONValue result = responseObject.get("result"); 103 JSONValue result = responseObject.get("result");
103 callback.onSuccess(result); 104 callback.onSuccess(result);
104 } 105 }
105 } 106 }
OLDNEW
« no previous file with comments | « frontend/client/src/autotest/common/DomUtils.java ('k') | frontend/client/src/autotest/common/spreadsheet/Spreadsheet.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698