throbber
Sunday, July 16, 2017
`
`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsCacheManager.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 * nsCacheManager- The boss of cache architecture. Contains all "external"
`21 * functions for use by people who don't care/want to know the internals
`22 * of the cache architecture.
`23 *
`24 * - Gagan Saksena 09/15/98
`25 *
`26 * Design and original implementation by Gagan Saksena 02/02/98
`27 *
`28 */
`29
`30 #ifndef _CacheManager_H_
`31 #define _CacheManager_H_
`32
`33 #if 0
`34 # include "nsISupports.h"
`35 #endif
`36
`37 #include "prlog.h"
`38
`39 #include "nsMonitorable.h"
`40 #include "nsCacheModule.h"
`41 #include "nsCacheObject.h"
`42
`43 class nsMemModule;
`44 class nsDiskModule;
`45 class nsCachePref;
`46 class nsCacheBkgThd;
`47
`48 class nsCacheManager : public nsMonitorable //: public nsISupports
`49 {
`50
`51 public:
`52
`53
`54
`
`//Reserved modules
`enum modules
`
`-1-
`
`Microsoft Corp. Exhibit 1061
`
`

`

`MEM =0,
`DISK=1
`
`};
`nsCacheManager();
`~nsCacheManager();
`
`Sunday, July 16, 2017
`
`PRInt32
`
`PRBool
`
`AddModule(nsCacheModule* i_cacheModule);
`// InsertModule
`Contains(const char* i_url) const;
`
`/* Number of modules in the cache manager */
`Entries() const;
`PRInt16
`
`void
`
`PRBool
`
`void
`
`// Initialize the cache manager. Constructor doesn't call this.
`// So you must specify this separately.
`Init();
`void
`InfoAsHTML(char* o_Buffer) const;
`IsOffline(void) const;
`Offline(PRBool bSet);
`Remove(const char* i_url);
`Trace() const;
`
`/* Singleton */
`static nsCacheManager* GetInstance();
`nsDiskModule*
`GetDiskModule() const;
`nsMemModule*
`GetMemModule() const;
`nsCacheModule*
`GetModule(PRInt16 i_index) const;
`nsCacheObject*
`GetObj(const char* i_url) const;
`nsCachePref*
`GetPrefs(void) const;
`
`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsCacheManager.h
`{
`55
`56
`57
`58
`59
`60
`61
`62
`63
`64
`65
`66
`67
`68
`69
`70
`71
`72
`73
`74
`75
`76
`77
`78
`79
`80
`81
`82
`83
`84
`85
`86
`87
`88
`89
`90
`91
`92
`93
`94
`95
`96
`/* Performance measure- microseconds */
`97
`WorstCaseTime(void) const;
`PRUint32
`98
`99
`100 protected:
`101
`102
`103
`104
`105
`106
`107
`108 /*
`
`PRBool
`const char*
`
`ContainsExactly(const char* i_url) const;
`PRBool
`LastModule() const;
`nsCacheModule*
`//PRBool Lock(void);
`//void Unlock(void);
`
`-2-
`
`Microsoft Corp. Exhibit 1061
`
`

`

`Sunday, July 16, 2017
`
`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsCacheManager.h
`109 class MgrMonitor
`110 {
`111 public:
`112 MgrMonitor() { nsCacheManager::GetInstance()->Lock();}
`113 ~MgrMonitor() { nsCacheManager::GetInstance()->Unlock();}
`114 };
`115
`116 friend MgrMonitor;
`117 */
`118
`119 private:
`m_pBkgThd;
`nsCacheBkgThd*
`120
`m_pFirstModule;
`nsCacheModule*
`121
`m_pMonitor;
`PRMonitor*
`122
`m_bOffline;
`123
`PRBool
`m_pPrefs;
`nsCachePref*
`124
`125
`nsCacheManager(const nsCacheManager& cm);
`126
`nsCacheManager& operator=(const nsCacheManager& cm);
`127
`128 };
`129
`130 inline
`131 nsDiskModule* nsCacheManager::GetDiskModule() const
`132 {
`PR_ASSERT(m_pFirstModule && m_pFirstModule->NextModule());
`133
`return (m_pFirstModule) ? (nsDiskModule*) m_pFirstModule->NextModule() : NULL;
`134
`135 }
`136
`137 inline
`138 nsMemModule* nsCacheManager::GetMemModule() const
`139 {
`PR_ASSERT(m_pFirstModule);
`140
`return (nsMemModule*) m_pFirstModule;
`141
`142 }
`143
`144 inline
`145 nsCachePref* nsCacheManager::GetPrefs(void) const
`146 {
`PR_ASSERT(m_pPrefs);
`147
`return m_pPrefs;
`148
`149 }
`150
`151 inline
`152 PRBool nsCacheManager::IsOffline(void) const
`153 {
`return m_bOffline;
`154
`155 }
`156
`157 inline
`158 void nsCacheManager::Offline(PRBool i_bSet)
`159 {
`m_bOffline = i_bSet;
`160
`161 }
`162
`
`-3-
`
`Microsoft Corp. Exhibit 1061
`
`

`

`Q:\Mozilla\mozilla-source-M8\mozilla\network\cache\nu\public\nsCacheManager.h
`163 #endif
`164
`
`Sunday, July 16, 2017
`
`-4-
`
`Microsoft Corp. Exhibit 1061
`
`

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