BookmarkContentSink Class Reference
Inheritance diagram for BookmarkContentSink:
[legend]
Collaboration diagram for BookmarkContentSink:
[legend]

Public Member Functions

 BookmarkContentSink ()
 
nsresult Init (PRBool aAllowRootChanges, nsINavBookmarksService *bookmarkService, PRInt64 aFolder, PRBool aIsImportDefaults)
 
NS_DECL_ISUPPORTS NS_IMETHOD WillParse ()
 
NS_IMETHOD WillInterrupt ()
 
NS_IMETHOD WillResume ()
 
NS_IMETHOD SetParser (nsIParser *aParser)
 
virtual void FlushPendingNotifications (mozFlushType aType)
 
NS_IMETHOD SetDocumentCharset (nsACString &aCharset)
 
virtual nsISupportsGetTarget ()
 
NS_IMETHOD OpenHead ()
 
NS_IMETHOD BeginContext (PRInt32 aPosition)
 
NS_IMETHOD EndContext (PRInt32 aPosition)
 
NS_IMETHOD IsEnabled (PRInt32 aTag, PRBool *aReturn)
 
NS_IMETHOD DidProcessTokens ()
 
NS_IMETHOD WillProcessAToken ()
 
NS_IMETHOD DidProcessAToken ()
 
NS_IMETHOD OpenContainer (const nsIParserNode &aNode)
 
NS_IMETHOD CloseContainer (const nsHTMLTag aTag)
 
NS_IMETHOD AddLeaf (const nsIParserNode &aNode)
 
NS_IMETHOD AddComment (const nsIParserNode &aNode)
 
NS_IMETHOD AddProcessingInstruction (const nsIParserNode &aNode)
 
NS_IMETHOD AddDocTypeDecl (const nsIParserNode &aNode)
 
NS_IMETHOD NotifyTagObservers (nsIParserNode *aNode)
 
 NS_IMETHOD_ (PRBool) IsFormOnStack()
 

Protected Member Functions

void HandleContainerBegin (const nsIParserNode &node)
 
void HandleContainerEnd ()
 
void HandleHead1Begin (const nsIParserNode &node)
 
void HandleHeadBegin (const nsIParserNode &node)
 
void HandleHeadEnd ()
 
void HandleLinkBegin (const nsIParserNode &node)
 
void HandleLinkEnd ()
 
void HandleSeparator (const nsIParserNode &node)
 
BookmarkImportFrameCurFrame ()
 
BookmarkImportFramePreviousFrame ()
 
nsresult NewFrame ()
 
nsresult PopFrame ()
 
nsresult SetFaviconForURI (nsIURI *aPageURI, nsIURI *aFaviconURI, const nsString &aData)
 
PRInt64 ConvertImportedIdToInternalId (const nsCString &aId)
 
PRTime ConvertImportedDateToInternalDate (const nsACString &aDate)
 

Protected Attributes

nsCOMPtr< nsINavBookmarksService > mBookmarksService
 
nsCOMPtr< nsINavHistoryService > mHistoryService
 
nsCOMPtr< nsIAnnotationService > mAnnotationService
 
nsCOMPtr< nsILivemarkService > mLivemarkService
 
nsCOMPtr< nsIMicrosummaryServicemMicrosummaryService
 
PRBool mAllowRootChanges
 
PRBool mIsImportDefaults
 
PRBool mFolderSpecified
 
nsTArray< BookmarkImportFramemFrames
 

Detailed Description

The content sink stuff is based loosely on

Definition at line 344 of file nsPlacesImportExportService.cpp.

Constructor & Destructor Documentation

BookmarkContentSink::BookmarkContentSink ( )

Definition at line 453 of file nsPlacesImportExportService.cpp.

Member Function Documentation

NS_IMETHOD BookmarkContentSink::AddComment ( const nsIParserNode &  aNode)
inline

Definition at line 377 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::AddDocTypeDecl ( const nsIParserNode &  aNode)
inline

Definition at line 379 of file nsPlacesImportExportService.cpp.

NS_IMETHODIMP BookmarkContentSink::AddLeaf ( const nsIParserNode &  aNode)

Definition at line 629 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

NS_IMETHOD BookmarkContentSink::AddProcessingInstruction ( const nsIParserNode &  aNode)
inline

Definition at line 378 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::BeginContext ( PRInt32  aPosition)
inline

Definition at line 367 of file nsPlacesImportExportService.cpp.

NS_IMETHODIMP BookmarkContentSink::CloseContainer ( const nsHTMLTag  aTag)

Definition at line 537 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

PRTime BookmarkContentSink::ConvertImportedDateToInternalDate ( const nsACString &  aDate)
protected

Definition at line 1378 of file nsPlacesImportExportService.cpp.

Here is the caller graph for this function:

PRInt64 BookmarkContentSink::ConvertImportedIdToInternalId ( const nsCString &  aId)
protected

Definition at line 1365 of file nsPlacesImportExportService.cpp.

Here is the caller graph for this function:

BookmarkImportFrame& BookmarkContentSink::CurFrame ( )
inlineprotected

Definition at line 424 of file nsPlacesImportExportService.cpp.

Here is the caller graph for this function:

NS_IMETHOD BookmarkContentSink::DidProcessAToken ( )
inline

Definition at line 373 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::DidProcessTokens ( )
inline

Definition at line 371 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::EndContext ( PRInt32  aPosition)
inline

Definition at line 368 of file nsPlacesImportExportService.cpp.

virtual void BookmarkContentSink::FlushPendingNotifications ( mozFlushType  aType)
inlinevirtual

Definition at line 361 of file nsPlacesImportExportService.cpp.

virtual nsISupports* BookmarkContentSink::GetTarget ( )
inlinevirtual

Definition at line 363 of file nsPlacesImportExportService.cpp.

void BookmarkContentSink::HandleContainerBegin ( const nsIParserNode &  node)
protected

Definition at line 661 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

void BookmarkContentSink::HandleContainerEnd ( )
protected

Definition at line 674 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BookmarkContentSink::HandleHead1Begin ( const nsIParserNode &  node)
protected

Definition at line 700 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

void BookmarkContentSink::HandleHeadBegin ( const nsIParserNode &  node)
protected

Definition at line 730 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

void BookmarkContentSink::HandleHeadEnd ( )
protected

Definition at line 799 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BookmarkContentSink::HandleLinkBegin ( const nsIParserNode &  node)
protected

Definition at line 812 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

void BookmarkContentSink::HandleLinkEnd ( )
protected

Definition at line 1024 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BookmarkContentSink::HandleSeparator ( const nsIParserNode &  node)
protected

Definition at line 1124 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult BookmarkContentSink::Init ( PRBool  aAllowRootChanges,
nsINavBookmarksService *  bookmarkService,
PRInt64  aFolder,
PRBool  aIsImportDefaults 
)

Definition at line 464 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::IsEnabled ( PRInt32  aTag,
PRBool *  aReturn 
)
inline

Definition at line 369 of file nsPlacesImportExportService.cpp.

nsresult BookmarkContentSink::NewFrame ( )
protected

Definition at line 1164 of file nsPlacesImportExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHOD BookmarkContentSink::NotifyTagObservers ( nsIParserNode *  aNode)
inline

Definition at line 380 of file nsPlacesImportExportService.cpp.

BookmarkContentSink::NS_IMETHOD_ ( PRBool  )
inline

Definition at line 381 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::OpenContainer ( const nsIParserNode &  aNode)
NS_IMETHOD BookmarkContentSink::OpenHead ( )
inline

Definition at line 366 of file nsPlacesImportExportService.cpp.

nsresult BookmarkContentSink::PopFrame ( )
protected

Definition at line 1273 of file nsPlacesImportExportService.cpp.

Here is the caller graph for this function:

BookmarkImportFrame& BookmarkContentSink::PreviousFrame ( )
inlineprotected

Definition at line 429 of file nsPlacesImportExportService.cpp.

Here is the caller graph for this function:

NS_IMETHOD BookmarkContentSink::SetDocumentCharset ( nsACString &  aCharset)
inline

Definition at line 362 of file nsPlacesImportExportService.cpp.

nsresult BookmarkContentSink::SetFaviconForURI ( nsIURI *  aPageURI,
nsIURI *  aFaviconURI,
const nsString &  aData 
)
protected

Definition at line 1299 of file nsPlacesImportExportService.cpp.

Here is the caller graph for this function:

NS_IMETHOD BookmarkContentSink::SetParser ( nsIParser *  aParser)
inline

Definition at line 360 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::WillInterrupt ( )
inline

Definition at line 358 of file nsPlacesImportExportService.cpp.

NS_DECL_ISUPPORTS NS_IMETHOD BookmarkContentSink::WillParse ( )
inline

Definition at line 357 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::WillProcessAToken ( )
inline

Definition at line 372 of file nsPlacesImportExportService.cpp.

NS_IMETHOD BookmarkContentSink::WillResume ( )
inline

Definition at line 359 of file nsPlacesImportExportService.cpp.

Member Data Documentation

PRBool BookmarkContentSink::mAllowRootChanges
protected

Definition at line 396 of file nsPlacesImportExportService.cpp.

nsCOMPtr<nsIAnnotationService> BookmarkContentSink::mAnnotationService
protected

Definition at line 386 of file nsPlacesImportExportService.cpp.

nsCOMPtr<nsINavBookmarksService> BookmarkContentSink::mBookmarksService
protected

Definition at line 384 of file nsPlacesImportExportService.cpp.

PRBool BookmarkContentSink::mFolderSpecified
protected

Definition at line 408 of file nsPlacesImportExportService.cpp.

nsTArray<BookmarkImportFrame> BookmarkContentSink::mFrames
protected

Definition at line 423 of file nsPlacesImportExportService.cpp.

nsCOMPtr<nsINavHistoryService> BookmarkContentSink::mHistoryService
protected

Definition at line 385 of file nsPlacesImportExportService.cpp.

PRBool BookmarkContentSink::mIsImportDefaults
protected

Definition at line 403 of file nsPlacesImportExportService.cpp.

nsCOMPtr<nsILivemarkService> BookmarkContentSink::mLivemarkService
protected

Definition at line 387 of file nsPlacesImportExportService.cpp.

nsCOMPtr<nsIMicrosummaryService> BookmarkContentSink::mMicrosummaryService
protected

Definition at line 388 of file nsPlacesImportExportService.cpp.


The documentation for this class was generated from the following file: