xref: /haiku/src/kits/network/libnetservices/NetworkCookieJarPrivate.h (revision 04171cfc5c10c98b9ba3c7233a271f6165cdd36f)
1 /*
2  * Copyright 2010 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _B_NETWORK_COOKIE_JAR_PRIVATE_H_
6 #define _B_NETWORK_COOKIE_JAR_PRIVATE_H_
7 
8 
9 #include <HashMap.h>
10 
11 
12 #ifndef LIBNETAPI_DEPRECATED
13 using BPrivate::Network::BNetworkCookie;
14 using BPrivate::Network::BNetworkCookieJar;
15 using BPrivate::Network::BNetworkCookieList;
16 #endif
17 
18 
19 typedef BPrivate::SynchronizedHashMap<HashString, BNetworkCookieList*>
20 	BNetworkCookieHashMap;
21 
22 struct BNetworkCookieJar::PrivateHashMap : public BNetworkCookieHashMap {
23 };
24 
25 struct BNetworkCookieJar::PrivateIterator {
26 								PrivateIterator(
27 									BNetworkCookieHashMap::Iterator it)
28 									:
29 									fCookieMapIterator(it)
30 								{
31 								}
32 
33 	HashString					fKey;
34 	BNetworkCookieHashMap::Iterator
35 								fCookieMapIterator;
36 };
37 
38 #endif // _B_NETWORK_COOKIE_JAR_PRIVATE_H_
39