jat@google.com | 5e86cbd | 2009-08-22 23:59:24 +0000 | [diff] [blame] | 1 | Startup protocol changes for version 2: |
| 2 | |
| 3 | C->S S->C |
| 4 | ==== ==== |
| 5 | {later: |
| 6 | GetRealPlugin(String pluginType, String platformId) |
| 7 | |
| 8 | FatalError(String message) |
| 9 | |
| 10 | RealPlugin(byte[] plugin) |
| 11 | } |
| 12 | |
| 13 | |
| 14 | CheckVersions(int minProtoVersion, int maxProtoVersion, |
| 15 | String hostedHtmlVersion) |
| 16 | |
| 17 | FatalError(String message) |
| 18 | |
| 19 | ProtocolVersion(int protoVersion) |
| 20 | |
| 21 | |
| 22 | {may be ommitted if no other supported transports: |
| 23 | ChooseTransport(String[] supportedTransports) |
| 24 | |
| 25 | FatalError(String msg) |
| 26 | |
| 27 | SwitchTransport(String transport, String transportArgs) |
| 28 | |
| 29 | [If transport is not empty, all further communication should be |
| 30 | switched to the selected transport. transportArgs varies by the |
| 31 | transport.] |
| 32 | } |
| 33 | |
| 34 | |
| 35 | LoadModule(String url, String sessionKey, String userAgent, String moduleName) |
| 36 | |
| 37 | [sessionKey is some arbitrary string to identify one group of modules as |
| 38 | being part of the same session of one application.] |
| 39 | |
| 40 | ... as before |
| 41 | |
| 42 | |
| 43 | |
| 44 | The v1 protocol LoadModule message is still accepted, though with reduced |
| 45 | functionality in the OOPHM UI. After the module is loaded, v1 and v2 are |
| 46 | exactly the same, which makes supporting both versions easier. |