Bug 1142195 - Remove some unused class declarations in the DOM Cache code; r=bkelly
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 11 Mar 2015 14:56:57 -0400
changeset 249319 beb831c0028bbe5271b622c8215397f930f762e0
parent 249318 e6c20c565d003e290ac3aa3e918885409b5e254b
child 249320 cff616142313aa9fc1ef2569c02f1b13fec69f96
push idunknown
push userunknown
push dateunknown
reviewersbkelly
bugs1142195
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1142195 - Remove some unused class declarations in the DOM Cache code; r=bkelly
dom/cache/AutoUtils.h
dom/cache/Cache.h
dom/cache/CacheParent.h
dom/cache/CacheStorage.h
dom/cache/Context.h
dom/cache/DBSchema.h
dom/cache/FetchPut.h
dom/cache/Manager.h
dom/cache/SavedTypes.h
dom/cache/TypeUtils.h
--- a/dom/cache/AutoUtils.h
+++ b/dom/cache/AutoUtils.h
@@ -20,19 +20,16 @@ class ErrorResult;
 
 namespace ipc {
 class PBackgroundParent;
 }
 
 namespace dom {
 
 class InternalRequest;
-class OwningRequestOrUSVString;
-class RequestOrUSVString;
-template<typename T> class Optional;
 
 namespace cache {
 
 class CacheStreamControlParent;
 struct SavedRequest;
 struct SavedResponse;
 class StreamList;
 
--- a/dom/cache/Cache.h
+++ b/dom/cache/Cache.h
@@ -16,38 +16,32 @@
 #include "nsWrapperCache.h"
 
 class nsIGlobalObject;
 
 namespace mozilla {
 
 class ErrorResult;
 
-namespace ipc {
-  class IProtocol;
-}
-
 namespace dom {
 
 class OwningRequestOrUSVString;
 class Promise;
 struct CacheQueryOptions;
 class RequestOrUSVString;
 class Response;
 template<typename T> class Optional;
 template<typename T> class Sequence;
 
 namespace cache {
 
 class CacheChild;
 class PCacheRequest;
-class PCacheRequestOrVoid;
 class PCacheResponse;
 class PCacheResponseOrVoid;
-class PCacheStreamControlChild;
 
 class Cache MOZ_FINAL : public PromiseNativeHandler
                       , public nsWrapperCache
                       , public TypeUtils
 {
 public:
   Cache(nsIGlobalObject* aGlobal, CacheChild* aActor);
 
--- a/dom/cache/CacheParent.h
+++ b/dom/cache/CacheParent.h
@@ -14,20 +14,17 @@
 
 struct nsID;
 template <class T> class nsRefPtr;
 
 namespace mozilla {
 namespace dom {
 namespace cache {
 
-class CacheDBConnection;
-class CacheStreamControlParent;
 struct SavedResponse;
-struct StreamHolder;
 
 class CacheParent MOZ_FINAL : public PCacheParent
                             , public Manager::Listener
                             , public FetchPut::Listener
 {
 public:
   CacheParent(cache::Manager* aManager, CacheId aCacheId);
   virtual ~CacheParent();
--- a/dom/cache/CacheStorage.h
+++ b/dom/cache/CacheStorage.h
@@ -20,34 +20,32 @@
 
 class nsIGlobalObject;
 
 namespace mozilla {
 
 class ErrorResult;
 
 namespace ipc {
-  class IProtocol;
   class PrincipalInfo;
 }
 
 namespace dom {
 
 class Promise;
 
 namespace workers {
   class WorkerPrivate;
 }
 
 namespace cache {
 
 class CacheChild;
 class CacheStorageChild;
 class Feature;
-class PCacheRequest;
 class PCacheResponseOrVoid;
 
 class CacheStorage MOZ_FINAL : public nsIIPCBackgroundChildCreateCallback
                              , public nsWrapperCache
                              , public TypeUtils
                              , public PromiseNativeHandler
 {
   typedef mozilla::ipc::PBackgroundChild PBackgroundChild;
--- a/dom/cache/Context.h
+++ b/dom/cache/Context.h
@@ -10,17 +10,16 @@
 #include "mozilla/dom/cache/Types.h"
 #include "nsAutoPtr.h"
 #include "nsCOMPtr.h"
 #include "nsISupportsImpl.h"
 #include "nsString.h"
 #include "nsTArray.h"
 
 class nsIEventTarget;
-class nsIFile;
 
 namespace mozilla {
 namespace dom {
 namespace cache {
 
 class Action;
 class Manager;
 
--- a/dom/cache/DBSchema.h
+++ b/dom/cache/DBSchema.h
@@ -20,17 +20,16 @@ struct nsID;
 namespace mozilla {
 namespace dom {
 namespace cache {
 
 class PCacheQueryParams;
 class PCacheRequest;
 class PCacheRequestOrVoid;
 class PCacheResponse;
-class PCacheResponseOrVoid;
 struct SavedRequest;
 struct SavedResponse;
 
 // TODO: remove static class and use functions in cache namespace (bug 1110485)
 class DBSchema MOZ_FINAL
 {
 public:
   static nsresult CreateSchema(mozIStorageConnection* aConn);
--- a/dom/cache/FetchPut.h
+++ b/dom/cache/FetchPut.h
@@ -17,27 +17,20 @@
 #include "nsTArray.h"
 #include <utility>
 
 class nsIInputStream;
 class nsIRunnable;
 class nsIThread;
 
 namespace mozilla {
-
-class ErrorResult;
-
 namespace dom {
 
-class OwningRequestOrScalarValueString;
-class Promise;
 class Request;
-class RequestOrScalarValueString;
 class Response;
-template<typename T> class Sequence;
 
 namespace cache {
 
 class FetchPut MOZ_FINAL : public Manager::Listener
                          , public TypeUtils
 {
 public:
   typedef std::pair<nsRefPtr<Request>, nsRefPtr<Response>> PutPair;
--- a/dom/cache/Manager.h
+++ b/dom/cache/Manager.h
@@ -11,30 +11,28 @@
 #include "mozilla/dom/cache/PCacheStreamControlParent.h"
 #include "mozilla/dom/cache/Types.h"
 #include "nsCOMPtr.h"
 #include "nsISupportsImpl.h"
 #include "nsString.h"
 #include "nsTArray.h"
 
 class nsIInputStream;
-class nsIOutputStream;
 class nsIThread;
 
 namespace mozilla {
 namespace dom {
 namespace cache {
 
 class CacheRequestResponse;
 class Context;
 class ManagerId;
 class PCacheQueryParams;
 class PCacheRequest;
 class PCacheRequestOrVoid;
-class PCacheResponse;
 struct SavedRequest;
 struct SavedResponse;
 class StreamList;
 
 // The Manager is class is responsible for performing all of the underlying
 // work for a Cache or CacheStorage operation.  The DOM objects and IPC actors
 // are basically just plumbing to get the request to the right Manager object
 // running in the parent process.
--- a/dom/cache/SavedTypes.h
+++ b/dom/cache/SavedTypes.h
@@ -15,21 +15,16 @@
 #include "nsCOMPtr.h"
 #include "nsID.h"
 #include "nsIOutputStream.h"
 
 namespace mozilla {
 namespace dom {
 namespace cache {
 
-struct StreamHolder
-{
-  nsCOMPtr<nsIOutputStream> mValue;
-};
-
 struct SavedRequest
 {
   SavedRequest() : mHasBodyId(false) { mValue.body() = void_t(); }
   PCacheRequest mValue;
   bool mHasBodyId;
   nsID mBodyId;
   CacheId mCacheId;
 };
--- a/dom/cache/TypeUtils.h
+++ b/dom/cache/TypeUtils.h
@@ -20,27 +20,23 @@ namespace dom {
 
 struct CacheQueryOptions;
 class InternalRequest;
 class InternalResponse;
 class OwningRequestOrUSVString;
 class Request;
 class RequestOrUSVString;
 class Response;
-template<typename T> class Optional;
 
 namespace cache {
 
 class PCacheQueryParams;
-class PCacheReadStream;
 class PCacheReadStreamOrVoid;
 class PCacheRequest;
-class PCacheRequestOrVoid;
 class PCacheResponse;
-class PCacheStreamControlChild;
 
 class TypeUtils
 {
 public:
   enum BodyAction
   {
     IgnoreBody,
     ReadBody