Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | |
michael@0 | 6 | #ifndef MEDIA_SESSION_ERRORS_H_ |
michael@0 | 7 | #define MEDIA_SESSION_ERRORS_H_ |
michael@0 | 8 | |
michael@0 | 9 | namespace mozilla |
michael@0 | 10 | { |
michael@0 | 11 | enum MediaConduitErrorCode |
michael@0 | 12 | { |
michael@0 | 13 | kMediaConduitNoError = 0, // 0 for Success,greater than 0 imples error |
michael@0 | 14 | kMediaConduitSessionNotInited = 10100, // Session not initialized.10100 serves as |
michael@0 | 15 | // base for the conduit errors |
michael@0 | 16 | kMediaConduitMalformedArgument, // Malformed input to Conduit API |
michael@0 | 17 | kMediaConduitCaptureError, // WebRTC capture APIs failed |
michael@0 | 18 | kMediaConduitInvalidSendCodec, // Wrong Send codec |
michael@0 | 19 | kMediaConduitInvalidReceiveCodec, // Wrong Recv Codec |
michael@0 | 20 | kMediaConduitCodecInUse, // Already applied Codec |
michael@0 | 21 | kMediaConduitInvalidRenderer, // Null or Wrong Renderer object |
michael@0 | 22 | kMediaConduitRendererFail, // Add Render called multiple times |
michael@0 | 23 | kMediaConduitSendingAlready, // Engine already trasmitting |
michael@0 | 24 | kMediaConduitReceivingAlready, // Engine already receiving |
michael@0 | 25 | kMediaConduitTransportRegistrationFail,// Null or wrong transport interface |
michael@0 | 26 | kMediaConduitInvalidTransport, // Null or wrong transport interface |
michael@0 | 27 | kMediaConduitChannelError, // Configuration Error |
michael@0 | 28 | kMediaConduitSocketError, // Media Engine transport socket error |
michael@0 | 29 | kMediaConduitRTPRTCPModuleError, // Couldn't start RTP/RTCP processing |
michael@0 | 30 | kMediaConduitRTPProcessingFailed, // Processing incoming RTP frame failed |
michael@0 | 31 | kMediaConduitUnknownError, // More information can be found in logs |
michael@0 | 32 | kMediaConduitExternalRecordingError, // Couldn't start external recording |
michael@0 | 33 | kMediaConduitRecordingError, // Runtime recording error |
michael@0 | 34 | kMediaConduitExternalPlayoutError, // Couldn't start external playout |
michael@0 | 35 | kMediaConduitPlayoutError, // Runtime playout error |
michael@0 | 36 | kMediaConduitMTUError, // Can't set MTU |
michael@0 | 37 | kMediaConduitRTCPStatusError, // Can't set RTCP mode |
michael@0 | 38 | kMediaConduitKeyFrameRequestError, // Can't set KeyFrameRequest mode |
michael@0 | 39 | kMediaConduitNACKStatusError // Can't set NACK mode |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | #endif |
michael@0 | 45 |