Bug 1127882 - Fix Promise include.
authorNikhil Marathe <nsm.nikhil@gmail.com>
Fri, 06 Feb 2015 10:08:31 -0800
changeset 245415 74052b081fedc7e86c9583775315f470a8d96b9a
parent 245414 d8b19758967bbbbd574dfdaeb662f5529db5a123
child 245416 71c769cf61bbb76c9f7984c20b134d3e6905ab60
push id7677
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 18:11:24 +0000
treeherdermozilla-aurora@f531d838c055 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1127882
milestone38.0a1
Bug 1127882 - Fix Promise include.
dom/workers/ServiceWorkerEvents.cpp
dom/workers/ServiceWorkerEvents.h
--- a/dom/workers/ServiceWorkerEvents.cpp
+++ b/dom/workers/ServiceWorkerEvents.cpp
@@ -3,17 +3,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "ServiceWorkerEvents.h"
 
 #include "nsContentUtils.h"
 
-#include "mozilla/dom/Promise.h"
 #include "mozilla/dom/WorkerScope.h"
 #include "mozilla/dom/workers/bindings/ServiceWorker.h"
 
 using namespace mozilla::dom;
 
 BEGIN_WORKERS_NAMESPACE
 
 ExtendableEvent::ExtendableEvent(EventTarget* aOwner)
--- a/dom/workers/ServiceWorkerEvents.h
+++ b/dom/workers/ServiceWorkerEvents.h
@@ -4,22 +4,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef mozilla_dom_workers_serviceworkerevents_h__
 #define mozilla_dom_workers_serviceworkerevents_h__
 
 #include "mozilla/dom/Event.h"
 #include "mozilla/dom/ExtendableEventBinding.h"
 #include "mozilla/dom/InstallEventBinding.h"
-
-namespace mozilla {
-namespace dom {
-  class Promise;
-} // namespace dom
-} // namespace mozilla
+#include "mozilla/dom/Promise.h"
 
 BEGIN_WORKERS_NAMESPACE
 
 class ServiceWorker;
 
 class ExtendableEvent : public Event
 {
   nsRefPtr<Promise> mPromise;