Bug 1432963 - Fixing workers headers - part 9 - WorkerLoadInfo without workers namespace, r=smaug

This commit is contained in:
Andrea Marchesini 2018-01-31 08:21:46 +01:00
parent 528066218f
commit 8df05ffda6
4 changed files with 18 additions and 11 deletions

View File

@ -22,14 +22,13 @@ class nsPIDOMWindowInner;
namespace mozilla {
namespace dom {
class SharedWorker;
struct WorkerLoadInfo;
class WorkerThread;
}
}
BEGIN_WORKERS_NAMESPACE
struct WorkerLoadInfo;
class RuntimeService final : public nsIObserver
{
struct SharedWorkerInfo

View File

@ -21,12 +21,15 @@ namespace mozilla {
class ErrorResult;
namespace dom {
struct WorkerLoadInfo;
} // dom namespace
} // namespace mozilla
BEGIN_WORKERS_NAMESPACE
struct WorkerLoadInfo;
enum WorkerScriptType {
WorkerScript,
DebuggerScript

View File

@ -23,7 +23,8 @@ namespace mozilla {
using namespace ipc;
namespace dom {
namespace workers {
using namespace workers;
namespace {
@ -542,6 +543,5 @@ NS_IMPL_RELEASE(WorkerLoadInfo::InterfaceRequestor)
NS_IMPL_QUERY_INTERFACE(WorkerLoadInfo::InterfaceRequestor,
nsIInterfaceRequestor)
} // worker namespace
} // dom namespace
} // mozilla namespace

View File

@ -27,12 +27,16 @@ class nsIURI;
class nsPIDOMWindowInner;
namespace mozilla {
namespace ipc {
class PrincipalInfo;
} // namespace ipc
} // namespace mozilla
BEGIN_WORKERS_NAMESPACE
namespace dom {
namespace workers {
class WorkerPrivate;
}
struct WorkerLoadInfo
{
@ -136,13 +140,14 @@ struct WorkerLoadInfo
#endif
bool
ProxyReleaseMainThreadObjects(WorkerPrivate* aWorkerPrivate);
ProxyReleaseMainThreadObjects(workers::WorkerPrivate* aWorkerPrivate);
bool
ProxyReleaseMainThreadObjects(WorkerPrivate* aWorkerPrivate,
ProxyReleaseMainThreadObjects(workers::WorkerPrivate* aWorkerPrivate,
nsCOMPtr<nsILoadGroup>& aLoadGroupToCancel);
};
END_WORKERS_NAMESPACE
} // dom namespace
} // mozilla namespace
#endif // mozilla_dom_workers_WorkerLoadInfo_h