Bug 488777 - Removal of createTemporaryClientID under netwerk/cache; r+sr=cbiesinger
authorJonathan Steele <xfsunoles@gmail.com>
Mon, 20 Apr 2009 12:31:26 +0200
changeset 27521 a5eda661725158a6b6000a130b19d321fcd481c4
parent 27520 40530e79373cfafa9e1e4dabdf43d15b2cd43794
child 27522 9cac836012c9e8921ab3828c21243fa396849d05
push id6590
push usersgautherie.bz@free.fr
push dateMon, 20 Apr 2009 10:32:42 +0000
treeherdermozilla-central@a5eda6617251 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs488777
milestone1.9.2a1pre
Bug 488777 - Removal of createTemporaryClientID under netwerk/cache; r+sr=cbiesinger
netwerk/cache/public/nsICacheService.idl
netwerk/cache/src/nsCacheService.cpp
--- a/netwerk/cache/public/nsICacheService.idl
+++ b/netwerk/cache/public/nsICacheService.idl
@@ -43,17 +43,17 @@
 #include "nsISupports.idl"
 #include "nsICache.idl"
 
 interface nsISimpleEnumerator;
 interface nsICacheListener;
 interface nsICacheSession;
 interface nsICacheVisitor;
 
-[scriptable, uuid(98dd0187-aad4-4cab-82c5-1adddef3629d)]
+[scriptable, uuid(de114eb4-29fc-4959-b2f7-2d03eb9bc771)]
 interface nsICacheService : nsISupports
 {
     /**
      * Create a cache session
      *
      * A cache session represents a client's access into the cache.  The cache
      * session is not "owned" by the cache service.  Hence, it is possible to
      * create duplicate cache sessions.  Entries created by a cache session
@@ -79,21 +79,16 @@ interface nsICacheService : nsISupports
      * Visit entries stored in the cache.  Used to implement about:cache.
      */
     void visitEntries(in nsICacheVisitor visitor);
 
     /**
      * Evicts all entries in all devices implied by the storage policy.
      */
     void evictEntries(in nsCacheStoragePolicy  storagePolicy);
-
-    /**
-     * This method is deprecated and will throw NS_ERROR_NOT_IMPLEMENTED.
-     */
-    ACString createTemporaryClientID(in nsCacheStoragePolicy storagePolicy);
 };
 
 %{C++
 /**
  * Observer service notification that is sent when
  * nsICacheService::evictEntries() or nsICacheSession::evictEntries()
  * is called.
  */
--- a/netwerk/cache/src/nsCacheService.cpp
+++ b/netwerk/cache/src/nsCacheService.cpp
@@ -942,22 +942,16 @@ NS_IMETHODIMP nsCacheService::VisitEntri
 }
 
 
 NS_IMETHODIMP nsCacheService::EvictEntries(nsCacheStoragePolicy storagePolicy)
 {
     return  EvictEntriesForClient(nsnull, storagePolicy);
 }
 
-NS_IMETHODIMP nsCacheService::CreateTemporaryClientID(nsCacheStoragePolicy storagePolicy,
-                                                      nsACString &clientID)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
 /**
  * Internal Methods
  */
 nsresult
 nsCacheService::CreateDiskDevice()
 {
 #ifdef NECKO_DISK_CACHE
     if (!mInitialized)      return NS_ERROR_NOT_AVAILABLE;