зеркало из https://github.com/mozilla/gecko-dev.git
Bug 935778 - Part 0.3: Spray some more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
This commit is contained in:
Родитель
07a71f7597
Коммит
9a39fcfd00
|
@ -25,6 +25,7 @@ class SharedThreadPool;
|
|||
// to make this threadsafe for objects that aren't already threadsafe.
|
||||
class MediaTaskQueue : public AtomicRefCounted<MediaTaskQueue> {
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(MediaTaskQueue)
|
||||
MediaTaskQueue(TemporaryRef<SharedThreadPool> aPool);
|
||||
~MediaTaskQueue();
|
||||
|
||||
|
|
|
@ -156,6 +156,7 @@ public:
|
|||
class LoadInfo : public mozilla::RefCounted<LoadInfo>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(LoadInfo)
|
||||
double GetSystemLoad() { return mSystemLoad.GetLoad(); };
|
||||
double GetProcessLoad() { return mProcessLoad.GetLoad(); };
|
||||
nsresult UpdateSystemLoad();
|
||||
|
|
|
@ -39,6 +39,7 @@ enum {
|
|||
class MediaEngine : public RefCounted<MediaEngine>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(MediaEngine)
|
||||
virtual ~MediaEngine() {}
|
||||
|
||||
static const int DEFAULT_VIDEO_FPS = 30;
|
||||
|
|
|
@ -285,6 +285,7 @@ MediaEngineDefaultVideoSource::NotifyPull(MediaStreamGraph* aGraph,
|
|||
class SineWaveGenerator : public RefCounted<SineWaveGenerator>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(SineWaveGenerator)
|
||||
static const int bytesPerSample = 2;
|
||||
static const int millisecondsPerSecond = 1000;
|
||||
static const int frequency = 1000;
|
||||
|
|
|
@ -312,6 +312,7 @@ private:
|
|||
class VolumeNameCache : public mozilla::RefCounted<VolumeNameCache>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(VolumeNameCache)
|
||||
nsTArray<nsString> mVolumeNames;
|
||||
};
|
||||
static mozilla::StaticRefPtr<VolumeNameCache> sVolumeNameCache;
|
||||
|
|
|
@ -13,6 +13,7 @@ class DeviceStorageFileDescriptor MOZ_FINAL
|
|||
: public mozilla::RefCounted<DeviceStorageFileDescriptor>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(DeviceStorageFileDescriptor)
|
||||
nsRefPtr<DeviceStorageFile> mDSFile;
|
||||
mozilla::ipc::FileDescriptor mFileDescriptor;
|
||||
};
|
||||
|
|
|
@ -182,6 +182,7 @@ DeviceStorageUsedSpaceCache::SetUsedSizes(const nsAString& aStorageName,
|
|||
class GlobalDirs : public RefCounted<GlobalDirs>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(GlobalDirs)
|
||||
#if !defined(MOZ_WIDGET_GONK)
|
||||
nsCOMPtr<nsIFile> pictures;
|
||||
nsCOMPtr<nsIFile> videos;
|
||||
|
|
|
@ -121,6 +121,7 @@ private:
|
|||
class CacheEntry : public mozilla::RefCounted<CacheEntry>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(DeviceStorageUsedSpaceCache::CacheEntry)
|
||||
bool mDirty;
|
||||
nsString mStorageName;
|
||||
int64_t mFreeBytes;
|
||||
|
|
|
@ -112,6 +112,7 @@ private:
|
|||
class CachedSurface : public RefCounted<CachedSurface>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(CachedSurface)
|
||||
CachedSurface(DrawTarget* aTarget,
|
||||
const IntSize aTargetSize,
|
||||
const Cost aCost,
|
||||
|
@ -157,6 +158,7 @@ private:
|
|||
class ImageSurfaceCache : public RefCounted<ImageSurfaceCache>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(ImageSurfaceCache)
|
||||
typedef nsRefPtrHashtable<nsGenericHashKey<SurfaceKey>, CachedSurface> SurfaceTable;
|
||||
|
||||
bool IsEmpty() const { return mSurfaces.Count() == 0; }
|
||||
|
|
|
@ -36,6 +36,7 @@ struct nsIntRect;
|
|||
class imgDecoderObserver : public mozilla::RefCounted<imgDecoderObserver>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(imgDecoderObserver)
|
||||
virtual ~imgDecoderObserver() = 0;
|
||||
|
||||
/**
|
||||
|
|
|
@ -48,6 +48,7 @@ enum LayerState {
|
|||
|
||||
class RefCountedRegion : public RefCounted<RefCountedRegion> {
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(RefCountedRegion)
|
||||
RefCountedRegion() : mIsInfinite(false) {}
|
||||
nsRegion mRegion;
|
||||
bool mIsInfinite;
|
||||
|
|
|
@ -15,6 +15,7 @@ class SharedCertVerifier : public mozilla::psm::CertVerifier,
|
|||
public mozilla::AtomicRefCounted<SharedCertVerifier>
|
||||
{
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(SharedCertVerifier)
|
||||
SharedCertVerifier(implementation_config ic,
|
||||
#ifndef NSS_NO_LIBPKIX
|
||||
missing_cert_download_config ac, crl_download_config cdc,
|
||||
|
|
|
@ -115,6 +115,7 @@ namespace mozilla {
|
|||
|
||||
class OSXNotificationInfo : public RefCounted<OSXNotificationInfo> {
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(OSXNotificationInfo)
|
||||
OSXNotificationInfo(NSString *name, nsIObserver *observer,
|
||||
const nsAString & alertCookie);
|
||||
~OSXNotificationInfo();
|
||||
|
|
|
@ -62,6 +62,7 @@ private:
|
|||
void RunMonitorThread();
|
||||
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(BackgroundHangManager)
|
||||
static StaticRefPtr<BackgroundHangManager> sInstance;
|
||||
|
||||
// Lock for access to members of this class
|
||||
|
@ -111,6 +112,7 @@ private:
|
|||
const PRThread* mThreadID;
|
||||
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(BackgroundHangThread)
|
||||
static BackgroundHangThread* FindThread();
|
||||
|
||||
static void Startup()
|
||||
|
|
Загрузка…
Ссылка в новой задаче