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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef _CC_INFO_H_
6 #define _CC_INFO_H_
8 #include "cc_constants.h"
10 /**
11 * Defines to be used for info_package info_type and info body in CC_Info_sendInfo()
12 * to send FAST PICTURE UPDATE INFO out
13 */
14 #define FAST_PIC_INFO_PACK ""
15 #define FAST_PIC_CTYPE "application/media_control+xml"
16 #define FAST_PIC_MSG_BODY "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n\
17 <media_control>\n\
18 <vc_primitive>\n\
19 <to_encoder>\n\
20 <picture_fast_update/>\n\
21 </to_encoder>\n\
22 </vc_primitive>\n\
23 </media_control>"
26 /**
27 * Send SIP INFO message with the specified event_type and xml body
28 * @param call_handle call handle
29 * @param info_package the Info-Package header of the INFO message
30 * @param info_type the Content-Type header of the INFO message
31 * @param info_body the message body of the INFO message
32 * @return void
33 */
34 void CC_Info_sendInfo(cc_call_handle_t call_handle,
35 cc_string_t info_package,
36 cc_string_t info_type,
37 cc_string_t info_body);
39 #endif /* _CC_INFO_H_ */