Bug 699468: Part 6 - Make some DatabaseInfo stuff private. r=bent

This commit is contained in:
Kyle Huey 2011-11-07 19:15:45 -05:00
parent 6ecd76ea59
commit 02524a04aa

View File

@ -56,8 +56,15 @@ struct ObjectStoreInfo;
typedef nsClassHashtable<nsStringHashKey, ObjectStoreInfo> typedef nsClassHashtable<nsStringHashKey, ObjectStoreInfo>
ObjectStoreInfoHash; ObjectStoreInfoHash;
class IDBDatabase;
class OpenDatabaseHelper;
struct DatabaseInfo struct DatabaseInfo
{ {
friend class IDBDatabase;
friend class OpenDatabaseHelper;
private:
DatabaseInfo() DatabaseInfo()
: nextObjectStoreId(1), : nextObjectStoreId(1),
nextIndexId(1), nextIndexId(1),
@ -72,6 +79,7 @@ struct DatabaseInfo
static void Remove(nsIAtom* aId); static void Remove(nsIAtom* aId);
public:
bool GetObjectStoreNames(nsTArray<nsString>& aNames); bool GetObjectStoreNames(nsTArray<nsString>& aNames);
bool ContainsStoreName(const nsAString& aName); bool ContainsStoreName(const nsAString& aName);