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 #include "CSFLog.h"
6 #include "CC_Common.h"
8 #include "CC_SIPCCCallServerInfo.h"
10 extern "C"
11 {
12 #include "ccapi_device_info.h"
13 }
15 using namespace std;
16 using namespace CSF;
18 CC_SIPCCCallServerInfo::CC_SIPCCCallServerInfo (cc_callserver_ref_t call_serverinfo) : callserverinfo_ref(call_serverinfo)
19 {
20 }
22 CSF_IMPLEMENT_WRAP(CC_SIPCCCallServerInfo, cc_callserver_ref_t);
24 CC_SIPCCCallServerInfo::~CC_SIPCCCallServerInfo()
25 {
26 }
28 string CC_SIPCCCallServerInfo::getCallServerName()
29 {
30 return CCAPI_DeviceInfo_getCallServerName(callserverinfo_ref);
31 }
33 cc_cucm_mode_t CC_SIPCCCallServerInfo::getCallServerMode()
34 {
35 return CCAPI_DeviceInfo_getCallServerMode(callserverinfo_ref);
36 }
38 cc_ccm_status_t CC_SIPCCCallServerInfo::getCallServerStatus()
39 {
40 return CCAPI_DeviceInfo_getCallServerStatus(callserverinfo_ref);
41 }