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 _CPR_ANDROID_STRING_H_
6 #define _CPR_ANDROID_STRING_H_
8 #include <string.h>
9 #include <ctype.h>
11 /**
12 * cpr_strdup
13 *
14 * @brief The CPR wrapper for strdup
16 * The cpr_strdup shall return a pointer to a new string, which is a duplicate
17 * of the string pointed to by "str" argument. A null pointer is returned if the
18 * new string cannot be created.
19 *
20 * @param[in] str - The string that needs to be duplicated
21 *
22 * @return The duplicated string or NULL in case of no memory
23 *
24 */
25 char *
26 cpr_strdup(const char *str);
30 #endif