Diff for /chimera/NSBrowserView.mm between versions 1.3 and 1.6

version 1.3, 2002/02/03 06:26:15 version 1.6, 2002/02/04 07:15:33
Line 72 Line 72
 #include "nsIHistoryEntry.h"  #include "nsIHistoryEntry.h"
 #include "nsISHEntry.h"  #include "nsISHEntry.h"
   
   const char* persistContractID = "@mozilla.org/embedding/browser/nsWebBrowserPersist;1";
   const char* dirServiceContractID = "@mozilla.org/file/directory_service;1";
   
 class nsCocoaBrowserListener : public nsSupportsWeakReference,  class nsCocoaBrowserListener : public nsSupportsWeakReference,
                                public nsIInterfaceRequestor,                                 public nsIInterfaceRequestor,
                                public nsIWebBrowserChrome,                                 public nsIWebBrowserChrome,
Line 602  public: Line 605  public:
         mFilterList = aFilterList;          mFilterList = aFilterList;
     }      }
                                       
    virtual ~nsHeaderSniffer() {};    virtual ~nsHeaderSniffer() 
     {
     };
   
     NS_DECL_ISUPPORTS      NS_DECL_ISUPPORTS
     NS_DECL_NSIWEBPROGRESSLISTENER      NS_DECL_NSIWEBPROGRESSLISTENER
Line 800  void nsHeaderSniffer::PerformSave() Line 805  void nsHeaderSniffer::PerformSave()
     else      else
         sourceData = do_QueryInterface(mURL);          sourceData = do_QueryInterface(mURL);
                   
       nsCOMPtr<nsIWebBrowserPersist> webPersist(do_CreateInstance(persistContractID));
     ProgressDlgController* progressDialog = [[ProgressDlgController alloc] initWithWindowNibName: @"ProgressDialog"];      ProgressDlgController* progressDialog = [[ProgressDlgController alloc] initWithWindowNibName: @"ProgressDialog"];
    [progressDialog setWebPersist: mPersist     [progressDialog setWebPersist: webPersist 
                     source: sourceData.get()                      source: sourceData.get()
                     destination: [savePanel filename]                      destination: [savePanel filename]
                     contentType: mContentType.get()                      contentType: mContentType.get()
Line 892  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 898  nsHeaderSniffer::OnSecurityChange(nsIWeb
   return self;    return self;
 }  }
   
   - (void)destroyWebBrowser
   {
     nsCOMPtr<nsIBaseWindow> baseWin = do_QueryInterface(_webBrowser);
     baseWin->Destroy();
   }
   
 - (void)dealloc   - (void)dealloc 
 {  {
     NSLog(@"NSBrowserView got dealloced.");
     
   NS_RELEASE(_listener);    NS_RELEASE(_listener);
   NS_IF_RELEASE(_webBrowser);    NS_IF_RELEASE(_webBrowser);
   nsCocoaBrowserService::TermEmbedding();    nsCocoaBrowserService::TermEmbedding();
Line 1089  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1103  nsHeaderSniffer::OnSecurityChange(nsIWeb
   
 }  }
   
 const char* persistContractID = "@mozilla.org/embedding/browser/nsWebBrowserPersist;1";  
 const char* dirServiceContractID = "@mozilla.org/file/directory_service;1";  
   
 -(void) saveInternal: (nsIURI*)aURI  -(void) saveInternal: (nsIURI*)aURI
         withDocument: (nsIDOMDocument*)aDocument          withDocument: (nsIDOMDocument*)aDocument
         bypassCache: (BOOL)aBypassCache          bypassCache: (BOOL)aBypassCache

Removed from v.1.3  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>