xref: /haiku/src/kits/network/libnetservices/NetworkCookieJarPrivate.h (revision 70b63f18b32a7ae90e4ff49659ba3844ce4c9aa5)
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 using BPrivate::Network::BNetworkCookie;
12 using BPrivate::Network::BNetworkCookieJar;
13 using BPrivate::Network::BNetworkCookieList;
14 
15 
16 typedef BPrivate::SynchronizedHashMap<HashString, BNetworkCookieList*>
17 	BNetworkCookieHashMap;
18 
19 struct BNetworkCookieJar::PrivateHashMap : public BNetworkCookieHashMap {
20 };
21 
22 struct BNetworkCookieJar::PrivateIterator {
PrivateIteratorPrivateIterator23 								PrivateIterator(
24 									BNetworkCookieHashMap::Iterator it)
25 									:
26 									fCookieMapIterator(it)
27 								{
28 								}
29 
30 	HashString					fKey;
31 	BNetworkCookieHashMap::Iterator
32 								fCookieMapIterator;
33 };
34 
35 #endif // _B_NETWORK_COOKIE_JAR_PRIVATE_H_
36