зеркало из https://github.com/mozilla/gecko-dev.git
Bug 539076 - Part2: Convert current global statements to lazy statements, r=dietrich
This commit is contained in:
Родитель
7f8d026ee2
Коммит
0b5a0131ea
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -136,7 +136,6 @@ private:
|
|||
|
||||
nsresult InitRoots();
|
||||
nsresult InitDefaults();
|
||||
nsresult InitStatements();
|
||||
nsresult CreateRoot(mozIStorageStatement* aGetRootStatement,
|
||||
const nsCString& name,
|
||||
PRInt64* aID,
|
||||
|
@ -282,15 +281,21 @@ private:
|
|||
nsresult GetBookmarkIdsForURITArray(nsIURI* aURI,
|
||||
nsTArray<PRInt64>& aResult);
|
||||
|
||||
// kGetInfoIndex_* results + kGetChildrenIndex_* results
|
||||
|
||||
/**
|
||||
* You should always use this getter and never use directly the nsCOMPtr.
|
||||
*/
|
||||
mozIStorageStatement* GetStatement(const nsCOMPtr<mozIStorageStatement>& aStmt);
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetChildren;
|
||||
// kGetInfoIndex_* results + kGetChildrenIndex_* results
|
||||
static const PRInt32 kGetChildrenIndex_Position;
|
||||
static const PRInt32 kGetChildrenIndex_Type;
|
||||
static const PRInt32 kGetChildrenIndex_PlaceID;
|
||||
static const PRInt32 kGetChildrenIndex_FolderTitle;
|
||||
static const PRInt32 kGetChildrenIndex_ServiceContractId;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBFindURIBookmarks; // kFindBookmarksIndex_* results
|
||||
nsCOMPtr<mozIStorageStatement> mDBFindURIBookmarks;
|
||||
static const PRInt32 kFindBookmarksIndex_ID;
|
||||
static const PRInt32 kFindBookmarksIndex_Type;
|
||||
static const PRInt32 kFindBookmarksIndex_PlaceID;
|
||||
|
@ -298,14 +303,9 @@ private:
|
|||
static const PRInt32 kFindBookmarksIndex_Position;
|
||||
static const PRInt32 kFindBookmarksIndex_Title;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBFolderCount;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetItemIndex;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetChildAt;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetItemProperties; // kGetItemPropertiesIndex_*
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetItemProperties;
|
||||
static const PRInt32 kGetItemPropertiesIndex_ID;
|
||||
static const PRInt32 kGetItemPropertiesIndex_URI; // null for folders and separators
|
||||
static const PRInt32 kGetItemPropertiesIndex_URI;
|
||||
static const PRInt32 kGetItemPropertiesIndex_Title;
|
||||
static const PRInt32 kGetItemPropertiesIndex_Position;
|
||||
static const PRInt32 kGetItemPropertiesIndex_PlaceID;
|
||||
|
@ -315,9 +315,6 @@ private:
|
|||
static const PRInt32 kGetItemPropertiesIndex_DateAdded;
|
||||
static const PRInt32 kGetItemPropertiesIndex_LastModified;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetItemIdForGUID;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetRedirectDestinations;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBInsertBookmark;
|
||||
static const PRInt32 kInsertBookmarkIndex_Id;
|
||||
static const PRInt32 kInsertBookmarkIndex_PlaceId;
|
||||
|
@ -329,23 +326,20 @@ private:
|
|||
static const PRInt32 kInsertBookmarkIndex_DateAdded;
|
||||
static const PRInt32 kInsertBookmarkIndex_LastModified;
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> mDBFolderCount;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetItemIndex;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetChildAt;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetItemIdForGUID;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetRedirectDestinations;
|
||||
nsCOMPtr<mozIStorageStatement> mDBIsBookmarkedInDatabase;
|
||||
nsCOMPtr<mozIStorageStatement> mDBIsRealBookmark;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetLastBookmarkID;
|
||||
nsCOMPtr<mozIStorageStatement> mDBSetItemDateAdded;
|
||||
nsCOMPtr<mozIStorageStatement> mDBSetItemLastModified;
|
||||
nsCOMPtr<mozIStorageStatement> mDBSetItemIndex;
|
||||
|
||||
// keywords
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetKeywordForURI;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetKeywordForBookmark;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetURIForKeyword;
|
||||
|
||||
/**
|
||||
* For the next statements you should always use this getter and never use
|
||||
* directly the statement nsCOMPtr.
|
||||
*/
|
||||
mozIStorageStatement* GetStatement(const nsCOMPtr<mozIStorageStatement>& aStmt);
|
||||
nsCOMPtr<mozIStorageStatement> mDBAdjustPosition;
|
||||
nsCOMPtr<mozIStorageStatement> mDBRemoveItem;
|
||||
nsCOMPtr<mozIStorageStatement> mDBGetLastChildId;
|
||||
|
|
Загрузка…
Ссылка в новой задаче