throbber
Sunday, July 16, 2017
`
`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsMemModule.h
`1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
`2 *
`3 * The contents of this file are subject to the Netscape Public License
`4 * Version 1.0 (the "NPL"); you may not use this file except in
`5 * compliance with the NPL. You may obtain a copy of the NPL at
`6 * http://www.mozilla.org/NPL/
`7 *
`8 * Software distributed under the NPL is distributed on an "AS IS" basis,
`9 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
`10 * for the specific language governing rights and limitations under the
`11 * NPL.
`12 *
`13 * The Initial Developer of this code under the NPL is Netscape
`14 * Communications Corporation. Portions created by Netscape are
`15 * Copyright (C) 1998 Netscape Communications Corporation. All Rights
`16 * Reserved.
`17 */
`18
`19 /*
`20 * nsMemModule. The memory based cache module.
`21 *
`22 * Gagan Saksena
`23 * 02/03/98
`24 *
`25 */
`26
`27 #ifndef _nsMemModule_H_
`28 #define _nsMemModule_H_
`29
`30 #include "nsCacheModule.h"
`31 #include "nsMemCacheObject.h"
`32 #include "nsCachePref.h"
`33
`34 //#include "nsHash.h" // TODO - replace with nsHashtable when the XPCOM_BRANCH merges
`35
`36 //#include "nsHashtable.h"
`37 /*
`38 // {5D51B250-E6C2-11d1-AFE5-006097BFC036}
`39 static const NS_MEMMODULE_IID =
`40 { 0x5d51b250, 0xe6c2, 0x11d1, { 0xaf, 0xe5, 0x0, 0x60, 0x97, 0xbf, 0xc0, 0x36 } };
`41 */
`42
`43 class nsMemModule : public nsCacheModule
`44 {
`45
`46 public:
`nsMemModule(const PRUint32 size=nsCachePref::GetInstance()->MemCacheSize());
`47
`~nsMemModule();
`48
`49
`50 /*
`51 NS_IMETHOD QueryInterface(const nsIID& aIID,
`52 void** aInstancePtr);
`53 NS_IMETHOD_(nsrefcnt) AddRef(void);
`54 NS_IMETHOD_(nsrefcnt) Release(void);
`-1-
`
`Microsoft Corp. Exhibit 1062
`
`

`

`Sunday, July 16, 2017
`
`PRBool
`
`PRBool
`PRBool
`
`PRBool
`
`AddObject(nsCacheObject* io_pObject);
`Contains(nsCacheObject* io_pObject) const;
`Contains(const char* i_url) const;
`GarbageCollect(void);
`void
`nsCacheObject* GetObject(const PRUint32 i_index) const;
`nsCacheObject* GetObject(const char* i_url) const;
`nsStream*
`GetStreamFor(const nsCacheObject* i_pObject);
`ReduceSizeTo(const PRUint32 i_NewSize);
`Remove(const char* i_url);
`Remove(const PRUint32 i_index);
`
`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsMemModule.h
`55
`56 */
`57
`58
`59
`60
`61
`62
`63
`64
`65
`66
`67
`68
`69
`70
`71
`72
`73
`74 // PRBool RemoveAll(void);
`75
`Revalidate(void);
`76
`77
`78
`// Start of nsMemModule specific stuff...
`79
`// Here is a sample implementation using linked list
`80
`81 protected:
`nsMemCacheObject* LastObject(void) const;
`82
`83
`84 private:
`nsMemCacheObject* m_pFirstObject;
`85
`86
`87
`88
`89
`90
`91
`92
`93
`94 /*
`95 class nsMemKey : public nsHashKey
`96 {
`97 public:
`98 nsMemKey();
`99 ~nsMemKey();
`100 PRUint32 HashValue();
`101 PRBool Equals(nsHashKey *aKey);
`102 nsHashKey* Clone();
`103 };
`104 */
`105 };
`106
`107 inline
`108 PRBool nsMemModule::Revalidate(void)
`
`PRBool
`PRBool
`
`PRBool
`
`//nsHash m_ht; //TODO replace with nsHashtable
`//Optimization
`nsMemCacheObject* m_pLastObject;
`nsMemModule(const nsMemModule& mm);
`nsMemModule& operator=(const nsMemModule& mm);
`
`-2-
`
`Microsoft Corp. Exhibit 1062
`
`

`

`/* Mem module elements are never revalidated */
`return PR_FALSE;
`
`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsMemModule.h
`109 {
`110
`111
`112 }
`113
`114 #endif
`115
`
`Sunday, July 16, 2017
`
`-3-
`
`Microsoft Corp. Exhibit 1062
`
`

This document is available on Docket Alarm but you must sign up to view it.


Or .

Accessing this document will incur an additional charge of $.

After purchase, you can access this document again without charge.

Accept $ Charge
throbber

Still Working On It

This document is taking longer than usual to download. This can happen if we need to contact the court directly to obtain the document and their servers are running slowly.

Give it another minute or two to complete, and then try the refresh button.

throbber

A few More Minutes ... Still Working

It can take up to 5 minutes for us to download a document if the court servers are running slowly.

Thank you for your continued patience.

This document could not be displayed.

We could not find this document within its docket. Please go back to the docket page and check the link. If that does not work, go back to the docket and refresh it to pull the newest information.

Your account does not support viewing this document.

You need a Paid Account to view this document. Click here to change your account type.

Your account does not support viewing this document.

Set your membership status to view this document.

With a Docket Alarm membership, you'll get a whole lot more, including:

  • Up-to-date information for this case.
  • Email alerts whenever there is an update.
  • Full text search for other cases.
  • Get email alerts whenever a new case matches your search.

Become a Member

One Moment Please

The filing “” is large (MB) and is being downloaded.

Please refresh this page in a few minutes to see if the filing has been downloaded. The filing will also be emailed to you when the download completes.

Your document is on its way!

If you do not receive the document in five minutes, contact support at support@docketalarm.com.

Sealed Document

We are unable to display this document, it may be under a court ordered seal.

If you have proper credentials to access the file, you may proceed directly to the court's system using your government issued username and password.


Access Government Site

We are redirecting you
to a mobile optimized page.





Document Unreadable or Corrupt

Refresh this Document
Go to the Docket

We are unable to display this document.

Refresh this Document
Go to the Docket