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

Side by Side Diff: pkg/analyzer_plugin/lib/src/protocol/protocol_internal.dart

Issue 2890163004: Add requestTime to responses (Closed)
Patch Set: Created 3 years, 7 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 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:convert' hide JsonDecoder; 6 import 'dart:convert' hide JsonDecoder;
7 7
8 import 'package:analyzer_plugin/protocol/protocol.dart'; 8 import 'package:analyzer_plugin/protocol/protocol.dart';
9 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 9 import 'package:analyzer_plugin/protocol/protocol_common.dart';
10 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; 10 import 'package:analyzer_plugin/protocol/protocol_generated.dart';
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 return new Exception('Missing key $key at $jsonPath'); 510 return new Exception('Missing key $key at $jsonPath');
511 } 511 }
512 } 512 }
513 513
514 /** 514 /**
515 * The result data associated with a response. 515 * The result data associated with a response.
516 */ 516 */
517 abstract class ResponseResult implements HasToJson { 517 abstract class ResponseResult implements HasToJson {
518 /** 518 /**
519 * Return a response whose result data is this object for the request with the 519 * Return a response whose result data is this object for the request with the
520 * given [id]. 520 * given [id], where the request was received at the given [requestTime].
521 */ 521 */
522 Response toResponse(String id); 522 Response toResponse(String id, int requestTime);
523 } 523 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698