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_SIPCC_DEVICE_H
6 #define _CC_SIPCC_DEVICE_H
8 #include "CC_Device.h"
9 #include "common/Wrapper.h"
10 #include <map>
12 namespace CSF
13 {
14 DECLARE_NS_PTR(CC_SIPCCDevice);
15 class CC_SIPCCDevice : public CC_Device
16 {
17 private:
18 CSF_DECLARE_WRAP(CC_SIPCCDevice, cc_device_handle_t);
19 static CC_DevicePtr create (const std::string & phoneConfigFileNameStr);
21 CC_SIPCCDevice (cc_device_handle_t aDeviceHandle);
23 public:
25 static CC_DevicePtr createDevice ();
27 virtual CC_DeviceInfoPtr getDeviceInfo ();
28 virtual std::string toString();
30 virtual CC_CallPtr createCall();
32 virtual void enableVideo(bool enable);
33 virtual void enableCamera(bool enable);
34 virtual void setDigestNamePasswd (char *name, char *pw);
36 private:
37 cc_device_handle_t deviceHandle;
39 };
40 };
42 #endif