Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey

This commit is contained in:
Tim Taubert 2015-03-04 14:54:16 +01:00
Родитель 2665cbe4f7
Коммит 75a685187a
3 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -8,7 +8,6 @@
#define mozilla_dom_workers_runtimeservice_h__
#include "Workers.h"
#include "WorkerPrivate.h" // For the WorkerType enum.
#include "nsIObserver.h"
@ -16,7 +15,6 @@
#include "nsClassHashtable.h"
#include "nsHashKeys.h"
#include "nsTArray.h"
#include "WorkerPrivate.h"
class nsIRunnable;
class nsITimer;

Просмотреть файл

@ -69,15 +69,6 @@ class WorkerPrivate;
class WorkerRunnable;
class WorkerThread;
// If you change this, the corresponding list in nsIWorkerDebugger.idl needs to
// be updated too.
enum WorkerType
{
WorkerTypeDedicated,
WorkerTypeShared,
WorkerTypeService
};
// SharedMutex is a small wrapper around an (internal) reference-counted Mutex
// object. It exists to avoid changing a lot of code to use Mutex* instead of
// Mutex&.

Просмотреть файл

@ -43,6 +43,17 @@ namespace mozilla {
namespace ipc {
class PrincipalInfo;
}
namespace dom {
// If you change this, the corresponding list in nsIWorkerDebugger.idl needs to
// be updated too.
enum WorkerType
{
WorkerTypeDedicated,
WorkerTypeShared,
WorkerTypeService
};
}
}
BEGIN_WORKERS_NAMESPACE