OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Protocol buffer for Media Remoting. | 5 // Protocol buffer for Media Remoting. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 OUTPUT_DOWNSCALED = 4; | 250 OUTPUT_DOWNSCALED = 4; |
251 KEY_STATUS_PENDING = 5; | 251 KEY_STATUS_PENDING = 5; |
252 RELEASED = 6; | 252 RELEASED = 6; |
253 } | 253 } |
254 | 254 |
255 optional bytes key_id = 1; | 255 optional bytes key_id = 1; |
256 optional KeyStatus status = 2; | 256 optional KeyStatus status = 2; |
257 optional uint32 system_code = 3; | 257 optional uint32 system_code = 3; |
258 } | 258 } |
259 | 259 |
260 // Should align with ::media::MediaKeys::Exception | 260 // Should align with ::media::CdmPromise::Exception |
261 enum MediaKeysException { | 261 enum MediaKeysException { |
262 NOT_SUPPORTED_ERROR = 0; | 262 NOT_SUPPORTED_ERROR = 0; |
263 INVALID_STATE_ERROR = 1; | 263 INVALID_STATE_ERROR = 1; |
264 INVALID_ACCESS_ERROR = 2; | 264 INVALID_ACCESS_ERROR = 2; |
265 QUOTA_EXCEEDED_ERROR = 3; | 265 QUOTA_EXCEEDED_ERROR = 3; |
266 UNKNOWN_ERROR = 4; | 266 UNKNOWN_ERROR = 4; |
267 CLIENT_ERROR = 5; | 267 CLIENT_ERROR = 5; |
268 OUTPUT_ERROR = 6; | 268 OUTPUT_ERROR = 6; |
269 } | 269 } |
270 | 270 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 559 |
560 // RPC_CDMC_ONSESSIONMESSAGE | 560 // RPC_CDMC_ONSESSIONMESSAGE |
561 CdmClientOnSessionMessage cdmclient_onsessionmessage_rpc = 601; | 561 CdmClientOnSessionMessage cdmclient_onsessionmessage_rpc = 601; |
562 // RPC_CDMC_ONSESSIONKEYSCHANGE | 562 // RPC_CDMC_ONSESSIONKEYSCHANGE |
563 CdmClientOnSessionKeysChange cdmclient_onsessionkeychange_rpc = 602; | 563 CdmClientOnSessionKeysChange cdmclient_onsessionkeychange_rpc = 602; |
564 // RPC_CDMC_ONSESSIONEXPIRATIONUPDATE | 564 // RPC_CDMC_ONSESSIONEXPIRATIONUPDATE |
565 CdmClientOnSessionExpirationUpdate cdmclient_onsessionexpirationupdate_rpc = | 565 CdmClientOnSessionExpirationUpdate cdmclient_onsessionexpirationupdate_rpc = |
566 603; | 566 603; |
567 }; | 567 }; |
568 } | 568 } |
OLD | NEW |