зеркало из https://github.com/mozilla/gecko-dev.git
Add support for bookmark separators (bug 320261). r=brettw, ben.
Original committer: bryner%brianryner.com Original revision: 1.63 Original date: 2006/02/08 01:10:37
This commit is contained in:
Родитель
aa4f2bfcd2
Коммит
49ba618343
|
@ -183,6 +183,7 @@ nsIAtom* nsNavHistory::sMenuRootAtom = nsnull;
|
||||||
nsIAtom* nsNavHistory::sToolbarRootAtom = nsnull;
|
nsIAtom* nsNavHistory::sToolbarRootAtom = nsnull;
|
||||||
nsIAtom* nsNavHistory::sSessionStartAtom = nsnull;
|
nsIAtom* nsNavHistory::sSessionStartAtom = nsnull;
|
||||||
nsIAtom* nsNavHistory::sSessionContinueAtom = nsnull;
|
nsIAtom* nsNavHistory::sSessionContinueAtom = nsnull;
|
||||||
|
nsIAtom* nsNavHistory::sContainerAtom = nsnull;
|
||||||
|
|
||||||
nsNavHistory* nsNavHistory::gHistoryService;
|
nsNavHistory* nsNavHistory::gHistoryService;
|
||||||
|
|
||||||
|
@ -199,6 +200,7 @@ nsNavHistory::nsNavHistory() : mNowValid(PR_FALSE),
|
||||||
sToolbarRootAtom = NS_NewAtom("toolbar-root");
|
sToolbarRootAtom = NS_NewAtom("toolbar-root");
|
||||||
sSessionStartAtom = NS_NewAtom("session-start");
|
sSessionStartAtom = NS_NewAtom("session-start");
|
||||||
sSessionContinueAtom = NS_NewAtom("session-continue");
|
sSessionContinueAtom = NS_NewAtom("session-continue");
|
||||||
|
sContainerAtom = NS_NewAtom("container");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -219,6 +221,7 @@ nsNavHistory::~nsNavHistory()
|
||||||
NS_IF_RELEASE(sToolbarRootAtom);
|
NS_IF_RELEASE(sToolbarRootAtom);
|
||||||
NS_IF_RELEASE(sSessionStartAtom);
|
NS_IF_RELEASE(sSessionStartAtom);
|
||||||
NS_IF_RELEASE(sSessionContinueAtom);
|
NS_IF_RELEASE(sSessionContinueAtom);
|
||||||
|
NS_IF_RELEASE(sContainerAtom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -435,6 +438,13 @@ nsNavHistory::InitDB()
|
||||||
getter_AddRefs(mDBGetURLPageInfoFull));
|
getter_AddRefs(mDBGetURLPageInfoFull));
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
|
// mDBGetIdPageInfo
|
||||||
|
rv = mDBConn->CreateStatement(NS_LITERAL_CSTRING(
|
||||||
|
"SELECT h.id, h.url, h.title, h.user_title, h.rev_host, h.visit_count "
|
||||||
|
"FROM moz_history h WHERE h.id = ?1"),
|
||||||
|
getter_AddRefs(mDBGetIdPageInfo));
|
||||||
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
// mDBGetIdPageInfoFull
|
// mDBGetIdPageInfoFull
|
||||||
rv = mDBConn->CreateStatement(NS_LITERAL_CSTRING(
|
rv = mDBConn->CreateStatement(NS_LITERAL_CSTRING(
|
||||||
"SELECT h.id, h.url, h.title, h.user_title, h.rev_host, h.visit_count, "
|
"SELECT h.id, h.url, h.title, h.user_title, h.rev_host, h.visit_count, "
|
||||||
|
|
Загрузка…
Ссылка в новой задаче