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
parent 2665cbe4f7
commit 75a685187a
3 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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&.

View File

@ -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