bug 1146027 - more final r=froydnj

This commit is contained in:
Trevor Saunders 2015-03-21 14:35:18 -04:00
parent 913bd799e1
commit 473f2ceb3c
36 changed files with 98 additions and 98 deletions

View File

@ -28,8 +28,8 @@ class HTMLContentElement;
class HTMLShadowElement;
class ShadowRootStyleSheetList;
class ShadowRoot : public DocumentFragment,
public nsStubMutationObserver
class ShadowRoot final : public DocumentFragment,
public nsStubMutationObserver
{
friend class ShadowRootStyleSheetList;
public:

View File

@ -81,8 +81,8 @@ private:
};
// Helper class that implements the nsIDOMMozNamedAttrMap interface.
class nsDOMAttributeMap : public nsIDOMMozNamedAttrMap
, public nsWrapperCache
class nsDOMAttributeMap final : public nsIDOMMozNamedAttrMap
, public nsWrapperCache
{
public:
typedef mozilla::dom::Attr Attr;

View File

@ -24,9 +24,9 @@ class File;
class DataChannel;
};
class nsDOMDataChannel : public mozilla::DOMEventTargetHelper,
public nsIDOMDataChannel,
public mozilla::DataChannelListener
class nsDOMDataChannel final : public mozilla::DOMEventTargetHelper,
public nsIDOMDataChannel,
public mozilla::DataChannelListener
{
public:
nsDOMDataChannel(already_AddRefed<mozilla::DataChannel>& aDataChannel,

View File

@ -30,10 +30,10 @@ class File;
}
}
class nsDOMFileReader : public mozilla::dom::FileIOObject,
public nsIDOMFileReader,
public nsIInterfaceRequestor,
public nsSupportsWeakReference
class nsDOMFileReader final : public mozilla::dom::FileIOObject,
public nsIDOMFileReader,
public nsIInterfaceRequestor,
public nsSupportsWeakReference
{
typedef mozilla::ErrorResult ErrorResult;
typedef mozilla::dom::GlobalObject GlobalObject;

View File

@ -267,7 +267,7 @@ CreateVoidVariant()
//
// We also use the same machinery for |returnValue|, which needs similar origin
// checks.
class DialogValueHolder : public nsISupports
class DialogValueHolder final : public nsISupports
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS

View File

@ -20,7 +20,7 @@
class nsIContent;
class nsIAtom;
class nsHTMLContentSerializer : public nsXHTMLContentSerializer {
class nsHTMLContentSerializer final : public nsXHTMLContentSerializer {
public:
nsHTMLContentSerializer();
virtual ~nsHTMLContentSerializer();

View File

@ -26,7 +26,7 @@ class EventChainPreVisitor;
#include "nsTHashtable.h"
#include "nsHashKeys.h"
class nsWindowRoot : public nsPIWindowRoot
class nsWindowRoot final : public nsPIWindowRoot
{
public:
explicit nsWindowRoot(nsPIDOMWindow* aWindow);

View File

@ -23,8 +23,8 @@ namespace dom {
* This class provides a late-bound collection of rows in a table.
* mParent is NOT ref-counted to avoid circular references
*/
class TableRowsCollection : public nsIHTMLCollection,
public nsWrapperCache
class TableRowsCollection final : public nsIHTMLCollection,
public nsWrapperCache
{
public:
explicit TableRowsCollection(HTMLTableElement* aParent);

View File

@ -52,8 +52,8 @@ class PStorageChild;
class ClonedMessageData;
class TabChild;
class ContentChild : public PContentChild
, public nsIContentChild
class ContentChild final : public PContentChild
, public nsIContentChild
{
typedef mozilla::dom::ClonedMessageData ClonedMessageData;
typedef mozilla::ipc::OptionalURIParams OptionalURIParams;

View File

@ -58,12 +58,12 @@ class nsIContentParent;
class Element;
struct StructuredCloneData;
class TabParent : public PBrowserParent
, public nsITabParent
, public nsIAuthPromptProvider
, public nsISecureBrowserUI
, public nsSupportsWeakReference
, public TabContext
class TabParent final : public PBrowserParent
, public nsITabParent
, public nsIAuthPromptProvider
, public nsISecureBrowserUI
, public nsSupportsWeakReference
, public TabContext
{
typedef mozilla::dom::ClonedMessageData ClonedMessageData;

View File

@ -19,8 +19,8 @@ namespace dom {
typedef nsSVGFE SVGFEImageElementBase;
class SVGFEImageElement : public SVGFEImageElementBase,
public nsImageLoadingContent
class SVGFEImageElement final : public SVGFEImageElementBase,
public nsImageLoadingContent
{
friend class ::SVGFEImageFrame;

View File

@ -13,8 +13,8 @@
class nsIControllerCommand;
class nsControllerCommandTable : public nsIControllerCommandTable,
public nsSupportsWeakReference
class nsControllerCommandTable final : public nsIControllerCommandTable,
public nsSupportsWeakReference
{
public:

View File

@ -49,7 +49,7 @@ class GradientStopsCairo : public GradientStops
ExtendMode mExtendMode;
};
class DrawTargetCairo : public DrawTarget
class DrawTargetCairo final : public DrawTarget
{
public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(DrawTargetCairo, override)

View File

@ -35,8 +35,8 @@ class ShadowLayerParent;
class CompositableParent;
class ShadowLayersManager;
class LayerTransactionParent : public PLayerTransactionParent,
public CompositableParentManager
class LayerTransactionParent final : public PLayerTransactionParent,
public CompositableParentManager
{
typedef mozilla::layout::RenderFrameParent RenderFrameParent;
typedef InfallibleTArray<Edit> EditArray;

View File

@ -131,7 +131,7 @@ class Transaction;
* from the content thread. (See CompositableForwarder.h and ImageBridgeChild.h)
*/
class ShadowLayerForwarder : public CompositableForwarder
class ShadowLayerForwarder final : public CompositableForwarder
{
friend class ClientLayerManager;

View File

@ -102,9 +102,9 @@ namespace css {
* Data needed to properly load a stylesheet *
*********************************************/
class SheetLoadData : public nsIRunnable,
public nsIUnicharStreamLoaderObserver,
public nsIThreadObserver
class SheetLoadData final : public nsIRunnable,
public nsIUnicharStreamLoaderObserver,
public nsIThreadObserver
{
protected:
virtual ~SheetLoadData(void);

View File

@ -16,8 +16,8 @@
class nsROCSSPrimitiveValue;
class nsDOMCSSRect : public nsIDOMRect,
public nsWrapperCache
class nsDOMCSSRect final : public nsIDOMRect,
public nsWrapperCache
{
public:
nsDOMCSSRect(nsROCSSPrimitiveValue* aTop,

View File

@ -175,9 +175,9 @@ class PrefCallback : public PLDHashEntryHdr {
}
};
class nsPrefBranch : public nsIPrefBranchInternal,
public nsIObserver,
public nsSupportsWeakReference
class nsPrefBranch final : public nsIPrefBranchInternal,
public nsIObserver,
public nsSupportsWeakReference
{
friend class mozilla::PreferenceServiceReporter;
public:
@ -228,8 +228,8 @@ private:
};
class nsPrefLocalizedString : public nsIPrefLocalizedString,
public nsISupportsString
class nsPrefLocalizedString final : public nsIPrefLocalizedString,
public nsISupportsString
{
public:
nsPrefLocalizedString();

View File

@ -338,8 +338,8 @@ private:
//// BackgroundFileSaverStreamListener. This class is instantiated by
// nsExternalHelperAppService, DownloadCore.jsm, and possibly others.
class BackgroundFileSaverStreamListener : public BackgroundFileSaver
, public nsIStreamListener
class BackgroundFileSaverStreamListener final : public BackgroundFileSaver
, public nsIStreamListener
{
public:
NS_DECL_THREADSAFE_ISUPPORTS

View File

@ -27,7 +27,7 @@ class DnsData;
class WebSocketRequest;
class ConnectionData;
class Dashboard
class Dashboard final
: public nsIDashboard
, public nsIDashboardEventNotifier
{

View File

@ -16,8 +16,8 @@
namespace mozilla {
namespace net {
class TLSServerSocket : public nsServerSocket
, public nsITLSServerSocket
class TLSServerSocket final : public nsServerSocket
, public nsITLSServerSocket
{
public:
NS_DECL_ISUPPORTS_INHERITED

View File

@ -88,10 +88,10 @@ protected:
////////////////////////////////////////////////////////////////////////////////
class nsBufferedOutputStream : public nsBufferedStream,
public nsISafeOutputStream,
public nsIBufferedOutputStream,
public nsIStreamBufferAccess
class nsBufferedOutputStream final : public nsBufferedStream,
public nsISafeOutputStream,
public nsIBufferedOutputStream,
public nsIStreamBufferAccess
{
public:
NS_DECL_ISUPPORTS_INHERITED

View File

@ -44,9 +44,9 @@ public:
NS_DEFINE_STATIC_IID_ACCESSOR(CacheFileListener, CACHEFILELISTENER_IID)
class CacheFile : public CacheFileChunkListener
, public CacheFileIOListener
, public CacheFileMetadataListener
class CacheFile final : public CacheFileChunkListener
, public CacheFileIOListener
, public CacheFileMetadataListener
{
public:
NS_DECL_THREADSAFE_ISUPPORTS

View File

@ -16,7 +16,7 @@
namespace mozilla {
namespace net {
class DNSRequestChild
class DNSRequestChild final
: public PDNSRequestChild
, public nsICancelable
{

View File

@ -22,9 +22,9 @@ class nsIPrefBranch;
#define kACEPrefixLen 4
class nsIDNService : public nsIIDNService,
public nsIObserver,
public nsSupportsWeakReference
class nsIDNService final : public nsIIDNService,
public nsIObserver,
public nsSupportsWeakReference
{
public:
NS_DECL_THREADSAFE_ISUPPORTS

View File

@ -17,8 +17,8 @@
#include "nsCOMPtr.h"
#include "nsTArray.h"
class nsAboutCache : public nsIAboutModule
, public nsICacheStorageVisitor
class nsAboutCache final : public nsIAboutModule
, public nsICacheStorageVisitor
{
public:
NS_DECL_ISUPPORTS

View File

@ -29,14 +29,14 @@ namespace net {
// nsBaseChannel and have a new class that has only the common logic for
// nsFTPChannel/FTPChannelChild.
class FTPChannelChild : public PFTPChannelChild
, public nsBaseChannel
, public nsIFTPChannel
, public nsIUploadChannel
, public nsIResumableChannel
, public nsIProxiedChannel
, public nsIChildChannel
, public nsIDivertableChannel
class FTPChannelChild final : public PFTPChannelChild
, public nsBaseChannel
, public nsIFTPChannel
, public nsIUploadChannel
, public nsIResumableChannel
, public nsIProxiedChannel
, public nsIChildChannel
, public nsIDivertableChannel
{
public:
typedef ::nsIStreamListener nsIStreamListener;

View File

@ -20,12 +20,12 @@
class nsIURI;
class nsFtpChannel : public nsBaseChannel,
public nsIFTPChannel,
public nsIUploadChannel,
public nsIResumableChannel,
public nsIProxiedChannel,
public nsIForcePendingChannel
class nsFtpChannel final : public nsBaseChannel,
public nsIFTPChannel,
public nsIUploadChannel,
public nsIResumableChannel,
public nsIProxiedChannel,
public nsIForcePendingChannel
{
public:
NS_DECL_ISUPPORTS_INHERITED

View File

@ -35,13 +35,13 @@ namespace net {
class HttpChannelParentListener;
class HttpChannelParent : public PHttpChannelParent
, public nsIParentRedirectingChannel
, public nsIProgressEventSink
, public nsIInterfaceRequestor
, public ADivertableParentChannel
, public nsIAuthPromptProvider
, public DisconnectableParent
class HttpChannelParent final : public PHttpChannelParent
, public nsIParentRedirectingChannel
, public nsIProgressEventSink
, public nsIInterfaceRequestor
, public ADivertableParentChannel
, public nsIAuthPromptProvider
, public DisconnectableParent
{
virtual ~HttpChannelParent();

View File

@ -19,10 +19,10 @@ namespace net {
class HttpChannelParent;
class HttpChannelParentListener : public nsIInterfaceRequestor
, public nsIChannelEventSink
, public nsIRedirectResultListener
, public nsIStreamListener
class HttpChannelParentListener final : public nsIInterfaceRequestor
, public nsIChannelEventSink
, public nsIRedirectResultListener
, public nsIStreamListener
{
public:
NS_DECL_ISUPPORTS

View File

@ -31,8 +31,8 @@ struct HttpRetParams;
//-----------------------------------------------------------------------------
class nsHttpConnectionMgr : public nsIObserver
, public AltSvcCache
class nsHttpConnectionMgr final : public nsIObserver
, public AltSvcCache
{
public:
NS_DECL_THREADSAFE_ISUPPORTS

View File

@ -17,8 +17,8 @@ namespace net {
class ChannelEvent;
class ChannelEventQueue;
class WebSocketChannelChild : public BaseWebSocketChannel,
public PWebSocketChild
class WebSocketChannelChild final : public BaseWebSocketChannel,
public PWebSocketChild
{
public:
explicit WebSocketChannelChild(bool aSecure);

View File

@ -36,9 +36,9 @@ enum WyciwygChannelChildState {
// Header file contents
class WyciwygChannelChild : public PWyciwygChannelChild
, public nsIWyciwygChannel
, public PrivateBrowsingChannel<WyciwygChannelChild>
class WyciwygChannelChild final : public PWyciwygChannelChild
, public nsIWyciwygChannel
, public PrivateBrowsingChannel<WyciwygChannelChild>
{
public:
NS_DECL_ISUPPORTS

View File

@ -29,10 +29,10 @@ extern PRLogModuleInfo * gWyciwygLog;
//-----------------------------------------------------------------------------
class nsWyciwygChannel: public nsIWyciwygChannel,
public nsIStreamListener,
public nsICacheEntryOpenCallback,
public mozilla::net::PrivateBrowsingChannel<nsWyciwygChannel>
class nsWyciwygChannel final: public nsIWyciwygChannel,
public nsIStreamListener,
public nsICacheEntryOpenCallback,
public mozilla::net::PrivateBrowsingChannel<nsWyciwygChannel>
{
public:
NS_DECL_THREADSAFE_ISUPPORTS

View File

@ -139,7 +139,7 @@ struct nsPipeReadState
//-----------------------------------------------------------------------------
// an input end of a pipe (maintained as a list of refs within the pipe)
class nsPipeInputStream
class nsPipeInputStream final
: public nsIAsyncInputStream
, public nsISeekableStream
, public nsISearchableInputStream

View File

@ -336,7 +336,7 @@ public:
}
};
class ThreadStackHelper::ThreadContext
class ThreadStackHelper::ThreadContext final
: public google_breakpad::MemoryRegion
{
public: