1# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2# vim: set filetype=python:
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7with Files("**"):
8    BUG_COMPONENT = ("Core", "DOM: Service Workers")
9
10# Public stuff.
11EXPORTS.mozilla.dom += [
12    "FetchEventOpChild.h",
13    "FetchEventOpParent.h",
14    "FetchEventOpProxyChild.h",
15    "FetchEventOpProxyParent.h",
16    "NavigationPreloadManager.h",
17    "ServiceWorker.h",
18    "ServiceWorkerActors.h",
19    "ServiceWorkerChild.h",
20    "ServiceWorkerCloneData.h",
21    "ServiceWorkerContainer.h",
22    "ServiceWorkerContainerChild.h",
23    "ServiceWorkerContainerParent.h",
24    "ServiceWorkerDescriptor.h",
25    "ServiceWorkerEvents.h",
26    "ServiceWorkerInfo.h",
27    "ServiceWorkerInterceptController.h",
28    "ServiceWorkerIPCUtils.h",
29    "ServiceWorkerManager.h",
30    "ServiceWorkerManagerChild.h",
31    "ServiceWorkerManagerParent.h",
32    "ServiceWorkerOp.h",
33    "ServiceWorkerOpPromise.h",
34    "ServiceWorkerParent.h",
35    "ServiceWorkerRegistrar.h",
36    "ServiceWorkerRegistration.h",
37    "ServiceWorkerRegistrationChild.h",
38    "ServiceWorkerRegistrationDescriptor.h",
39    "ServiceWorkerRegistrationInfo.h",
40    "ServiceWorkerRegistrationParent.h",
41    "ServiceWorkerShutdownState.h",
42    "ServiceWorkerUtils.h",
43]
44
45UNIFIED_SOURCES += [
46    "FetchEventOpChild.cpp",
47    "FetchEventOpParent.cpp",
48    "FetchEventOpProxyChild.cpp",
49    "FetchEventOpProxyParent.cpp",
50    "NavigationPreloadManager.cpp",
51    "RemoteServiceWorkerContainerImpl.cpp",
52    "RemoteServiceWorkerImpl.cpp",
53    "RemoteServiceWorkerRegistrationImpl.cpp",
54    "ServiceWorker.cpp",
55    "ServiceWorkerActors.cpp",
56    "ServiceWorkerChild.cpp",
57    "ServiceWorkerCloneData.cpp",
58    "ServiceWorkerContainer.cpp",
59    "ServiceWorkerContainerChild.cpp",
60    "ServiceWorkerContainerParent.cpp",
61    "ServiceWorkerContainerProxy.cpp",
62    "ServiceWorkerDescriptor.cpp",
63    "ServiceWorkerEvents.cpp",
64    "ServiceWorkerInfo.cpp",
65    "ServiceWorkerInterceptController.cpp",
66    "ServiceWorkerJob.cpp",
67    "ServiceWorkerJobQueue.cpp",
68    "ServiceWorkerManager.cpp",
69    "ServiceWorkerManagerParent.cpp",
70    "ServiceWorkerOp.cpp",
71    "ServiceWorkerParent.cpp",
72    "ServiceWorkerPrivate.cpp",
73    "ServiceWorkerPrivateImpl.cpp",
74    "ServiceWorkerProxy.cpp",
75    "ServiceWorkerQuotaUtils.cpp",
76    "ServiceWorkerRegisterJob.cpp",
77    "ServiceWorkerRegistrar.cpp",
78    "ServiceWorkerRegistration.cpp",
79    "ServiceWorkerRegistrationChild.cpp",
80    "ServiceWorkerRegistrationDescriptor.cpp",
81    "ServiceWorkerRegistrationInfo.cpp",
82    "ServiceWorkerRegistrationParent.cpp",
83    "ServiceWorkerRegistrationProxy.cpp",
84    "ServiceWorkerScriptCache.cpp",
85    "ServiceWorkerShutdownBlocker.cpp",
86    "ServiceWorkerShutdownState.cpp",
87    "ServiceWorkerUnregisterCallback.cpp",
88    "ServiceWorkerUnregisterJob.cpp",
89    "ServiceWorkerUpdateJob.cpp",
90    "ServiceWorkerUtils.cpp",
91]
92
93IPDL_SOURCES += [
94    "IPCNavigationPreloadState.ipdlh",
95    "IPCServiceWorkerDescriptor.ipdlh",
96    "IPCServiceWorkerRegistrationDescriptor.ipdlh",
97    "PFetchEventOp.ipdl",
98    "PFetchEventOpProxy.ipdl",
99    "PServiceWorker.ipdl",
100    "PServiceWorkerContainer.ipdl",
101    "PServiceWorkerManager.ipdl",
102    "PServiceWorkerRegistration.ipdl",
103    "ServiceWorkerOpArgs.ipdlh",
104    "ServiceWorkerRegistrarTypes.ipdlh",
105]
106
107include("/ipc/chromium/chromium-config.mozbuild")
108
109FINAL_LIBRARY = "xul"
110
111MOCHITEST_MANIFESTS += [
112    "test/mochitest-dFPI.ini",
113    "test/mochitest.ini",
114]
115
116MOCHITEST_CHROME_MANIFESTS += [
117    "test/chrome-dFPI.ini",
118    "test/chrome.ini",
119]
120
121BROWSER_CHROME_MANIFESTS += [
122    "test/browser-dFPI.ini",
123    "test/browser.ini",
124    "test/isolated/multi-e10s-update/browser.ini",
125]
126
127TEST_DIRS += ["test/gtest"]
128