Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // | 1 // |
| 2 // TODO(turnidge): Finish writing an idl description of the service protocol. | 2 // TODO(turnidge): Finish writing an idl description of the service protocol. |
| 3 // | 3 // |
| 4 | 4 |
| 5 interface Service { | 5 interface Service { |
| 6 // Returns the list of breakpoints for an isolate. | 6 // Returns the list of breakpoints for an isolate. |
| 7 getBreakpoints(isolateId string) BreakpointList | 7 getBreakpoints(isolateId string) BreakpointList |
| 8 | 8 |
| 9 // Adds a breakpoint at the specified line. | 9 // Adds a breakpoint at the specified line. |
| 10 // | 10 // |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 limit int) RetainingPath | 68 limit int) RetainingPath |
| 69 | 69 |
| 70 // Returns a collection of inbound references to some object. | 70 // Returns a collection of inbound references to some object. |
| 71 // | 71 // |
| 72 // TODO(turnidge): Make limit an int instead of a string. | 72 // TODO(turnidge): Make limit an int instead of a string. |
| 73 getInboundReferences(isolateId string, | 73 getInboundReferences(isolateId string, |
| 74 targetId string, | 74 targetId string, |
| 75 limit int) InboundReferences | 75 limit int) InboundReferences |
| 76 | 76 |
| 77 getClassList(isolateId string) ClassList | 77 getClassList(isolateId string) ClassList |
| 78 | |
| 79 // When onlyWithInstantiations is true, the list only includes type arguments | |
| 80 // with instantiations. Otherwise, all type arguments are returned. | |
|
turnidge
2015/02/03 21:09:35
I've been using <code/> around argument names. No
Cutch
2015/02/03 21:35:53
Done.
| |
| 81 getTypeArgumentsList(isolateId string, | |
| 82 onlyWithInstantiations bool) TypeArgumentsList | |
| 78 } | 83 } |
| 79 | 84 |
| 80 | 85 |
| 81 // Every top level response returned by the Service interface extends | 86 // Every top level response returned by the Service interface extends |
| 82 // <code>Response</code>. This allows the client to distinguish | 87 // <code>Response</code>. This allows the client to distinguish |
| 83 // between different kinds of responses by using the <code>type</code> | 88 // between different kinds of responses by using the <code>type</code> |
| 84 // property. | 89 // property. |
| 85 struct Response { | 90 struct Response { |
| 86 // Every response returned by the VM Service has the | 91 // Every response returned by the VM Service has the |
| 87 // <code>type</code> property. This allows the client distinguish | 92 // <code>type</code> property. This allows the client distinguish |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 struct CodeRef extends ObjectRef { | 137 struct CodeRef extends ObjectRef { |
| 133 placeholder int | 138 placeholder int |
| 134 } | 139 } |
| 135 | 140 |
| 136 | 141 |
| 137 struct ClassRef extends ObjectRef { | 142 struct ClassRef extends ObjectRef { |
| 138 placeholder int | 143 placeholder int |
| 139 } | 144 } |
| 140 | 145 |
| 141 | 146 |
| 147 struct TypeArgumentsRef extends ObjectRef { | |
| 148 placeholder int | |
| 149 } | |
| 150 | |
| 151 | |
| 142 // A <code>FunctionRef</code> encodes a reference to a <code>Function</code> obj ect. | 152 // A <code>FunctionRef</code> encodes a reference to a <code>Function</code> obj ect. |
| 143 struct FunctionRef extends ObjectRef { | 153 struct FunctionRef extends ObjectRef { |
| 144 placeholder int | 154 placeholder int |
| 145 } | 155 } |
| 146 | 156 |
| 147 | 157 |
| 148 // A <code>FieldRef</code> encodes a reference to a <code>Field</code> object. | 158 // A <code>FieldRef</code> encodes a reference to a <code>Field</code> object. |
| 149 struct FieldRef extends ObjectRef { | 159 struct FieldRef extends ObjectRef { |
| 150 placeholder int | 160 placeholder int |
| 151 } | 161 } |
| 152 | 162 |
| 153 | 163 |
| 154 // A <code>InstanceRef</code> encodes a reference to a <code>Instance</code> obj ect. | 164 // A <code>InstanceRef</code> encodes a reference to a <code>Instance</code> obj ect. |
| 155 struct InstanceRef extends ObjectRef { | 165 struct InstanceRef extends ObjectRef { |
| 156 placeholder int | 166 placeholder int |
| 157 } | 167 } |
| 158 | 168 |
| 159 | 169 |
| 160 // A <code>ScriptRef</code> encodes a reference to a <code>Script</code> object. | 170 // A <code>ScriptRef</code> encodes a reference to a <code>Script</code> object. |
| 161 struct ScriptRef extends ObjectRef { | 171 struct ScriptRef extends ObjectRef { |
| 162 placeholder int | 172 placeholder int |
| 163 } | 173 } |
| 164 | 174 |
| 165 | 175 |
| 166 struct Class extends Object { | 176 struct Class extends Object { |
| 167 placeholder int | 177 placeholder int |
| 168 } | 178 } |
| 169 | 179 |
| 170 | 180 |
| 181 struct TypeArguments extends Object { | |
| 182 placeholder int | |
| 183 } | |
| 184 | |
| 185 | |
| 171 // A <code>Location</code> encodes a location withing a dart script. | 186 // A <code>Location</code> encodes a location withing a dart script. |
| 172 // | 187 // |
| 173 // TODO(turnidge): Should this really be broken out as its own type? | 188 // TODO(turnidge): Should this really be broken out as its own type? |
| 174 // If so, we should use it more consistently in the api. For example, | 189 // If so, we should use it more consistently in the api. For example, |
| 175 // in Frame. | 190 // in Frame. |
| 176 struct Location { | 191 struct Location { |
| 177 script ScriptRef | 192 script ScriptRef |
| 178 tokenPos int | 193 tokenPos int |
| 179 } | 194 } |
| 180 | 195 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 source InstanceRef | 297 source InstanceRef |
| 283 slot int | 298 slot int |
| 284 } | 299 } |
| 285 | 300 |
| 286 | 301 |
| 287 struct ClassList { | 302 struct ClassList { |
| 288 classes []ClassRef | 303 classes []ClassRef |
| 289 } | 304 } |
| 290 | 305 |
| 291 | 306 |
| 307 struct TypeArgumentsList { | |
| 308 tableSize int | |
| 309 tableUsed int | |
| 310 typeArguments []TypeArgumentsRef | |
| 311 } | |
| 312 | |
| 313 | |
| 292 // A <code>GCOption</code> is used to indicate which form of garbage | 314 // A <code>GCOption</code> is used to indicate which form of garbage |
| 293 // collection is requested. | 315 // collection is requested. |
| 294 enum GCOption { | 316 enum GCOption { |
| 295 full | 317 full |
| 296 } | 318 } |
| 297 | 319 |
| 298 // A <code>StepOption</code> is used to indicate which form of | 320 // A <code>StepOption</code> is used to indicate which form of |
| 299 // single-stepping is requested. | 321 // single-stepping is requested. |
| 300 enum StepOption { | 322 enum StepOption { |
| 301 into | 323 into |
| 302 over | 324 over |
| 303 out | 325 out |
| 304 } | 326 } |
| 305 | 327 |
| 306 // A <code>TagSelector</code> is used to indicate which sets of tags | 328 // A <code>TagSelector</code> is used to indicate which sets of tags |
| 307 // should take precedence in a cpu profile. | 329 // should take precedence in a cpu profile. |
| 308 enum TagSelector { | 330 enum TagSelector { |
| 309 UserVM | 331 UserVM |
| 310 UserOnly | 332 UserOnly |
| 311 VMUser | 333 VMUser |
| 312 VMOnly | 334 VMOnly |
| 313 None | 335 None |
| 314 } | 336 } |
| 315 | 337 |
| OLD | NEW |