| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package extensions.core_api.cast_channel.proto; | 9 package extensions.core_api.cast_channel.proto; |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 optional ChallengeReplyErrorType challenge_reply_error_type = 11; | 127 optional ChallengeReplyErrorType challenge_reply_error_type = 11; |
| 128 optional int32 nss_error_code = 12; | 128 optional int32 nss_error_code = 12; |
| 129 } | 129 } |
| 130 | 130 |
| 131 message AggregatedSocketEvent { | 131 message AggregatedSocketEvent { |
| 132 optional int32 id = 1; | 132 optional int32 id = 1; |
| 133 optional int32 endpoint_id = 2; | 133 optional int32 endpoint_id = 2; |
| 134 optional ChannelAuth channel_auth_type = 3; | 134 optional ChannelAuth channel_auth_type = 3; |
| 135 repeated SocketEvent socket_event = 4; | 135 repeated SocketEvent socket_event = 4; |
| 136 optional int64 bytes_read = 5; |
| 137 optional int64 bytes_written = 6; |
| 136 } | 138 } |
| 137 | 139 |
| 138 message Log { | 140 message Log { |
| 139 // Each AggregatedSocketEvent represents events recorded for a socket. | 141 // Each AggregatedSocketEvent represents events recorded for a socket. |
| 140 repeated AggregatedSocketEvent aggregated_socket_event = 1; | 142 repeated AggregatedSocketEvent aggregated_socket_event = 1; |
| 141 | 143 |
| 142 // Number of socket log entries evicted by the logger due to size constraints. | 144 // Number of socket log entries evicted by the logger due to size constraints. |
| 143 optional int32 num_evicted_aggregated_socket_events = 2; | 145 optional int32 num_evicted_aggregated_socket_events = 2; |
| 144 | 146 |
| 145 // Number of event log entries evicted by the logger due to size constraints. | 147 // Number of event log entries evicted by the logger due to size constraints. |
| 146 optional int32 num_evicted_socket_events = 3; | 148 optional int32 num_evicted_socket_events = 3; |
| 147 | |
| 148 // TODO(imcheng): Add other stats, such as bytes read/written across sockets. | |
| 149 } | 149 } |
| OLD | NEW |