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_SIPCCLINE_H
6 #define _CC_SIPCCLINE_H
8 #include "CC_Line.h"
9 #include <map>
11 #include "common/csf_common.h"
12 #include "common/Wrapper.h"
14 namespace CSF
15 {
16 DECLARE_NS_PTR(CC_SIPCCLine);
17 class CC_SIPCCLine : public CC_Line
18 {
19 private:
20 CSF_DECLARE_WRAP(CC_SIPCCLine, cc_lineid_t);
22 cc_lineid_t lineId;
23 CC_SIPCCLine (cc_lineid_t aLineId) : lineId(aLineId) { }
25 public:
26 virtual std::string toString() {
27 std::string result;
28 char tmpString[11];
29 csf_sprintf(tmpString, sizeof(tmpString), "%X", lineId);
30 result = tmpString;
31 return result;
32 };
33 virtual cc_lineid_t getID();
34 virtual CC_LineInfoPtr getLineInfo ();
35 virtual CC_CallPtr createCall ();
36 };
38 };
41 #endif