Bug 1378342 - AbortSignal/AbortController - part 1 - Moving FetchController/FetchSignal into dom/abort, r=bkelly

--HG--
rename : dom/fetch/FetchController.cpp => dom/abort/FetchController.cpp
rename : dom/fetch/FetchController.h => dom/abort/FetchController.h
rename : dom/fetch/FetchSignal.cpp => dom/abort/FetchSignal.cpp
rename : dom/fetch/FetchSignal.h => dom/abort/FetchSignal.h
rename : dom/tests/mochitest/fetch/file_fetch_controller.html => dom/abort/tests/file_fetch_controller.html
rename : dom/tests/mochitest/fetch/test_fetch_controller.html => dom/abort/tests/test_fetch_controller.html
rename : dom/tests/mochitest/fetch/worker_fetch_controller.js => dom/abort/tests/worker_fetch_controller.js
This commit is contained in:
Andrea Marchesini 2017-08-29 07:30:19 +02:00
Родитель c00da5bfe0
Коммит ac5b9df285
13 изменённых файлов: 41 добавлений и 7 удалений

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

@ -7,6 +7,7 @@
#include "FetchController.h"
#include "FetchSignal.h"
#include "mozilla/dom/FetchControllerBinding.h"
#include "WorkerPrivate.h"
namespace mozilla {
namespace dom {

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

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

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

26
dom/abort/moz.build Normal file
Просмотреть файл

@ -0,0 +1,26 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
with Files("**"):
BUG_COMPONENT = ("Core", "DOM")
TEST_DIRS += ['tests']
EXPORTS.mozilla.dom += [
'FetchController.h',
'FetchSignal.h',
]
UNIFIED_SOURCES += [
'FetchController.cpp',
'FetchSignal.cpp',
]
LOCAL_INCLUDES += [
'../workers',
]
FINAL_LIBRARY = 'xul'

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

@ -0,0 +1,6 @@
[DEFAULT]
support-files =
file_fetch_controller.html
worker_fetch_controller.js
[test_fetch_controller.html]

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

@ -0,0 +1,7 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
MOCHITEST_MANIFESTS += ['mochitest.ini']

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

@ -11,11 +11,9 @@ EXPORTS.mozilla.dom += [
'BodyExtractor.h',
'ChannelInfo.h',
'Fetch.h',
'FetchController.h',
'FetchDriver.h',
'FetchIPCTypes.h',
'FetchObserver.h',
'FetchSignal.h',
'FetchStreamReader.h',
'FetchUtil.h',
'Headers.h',
@ -31,10 +29,8 @@ UNIFIED_SOURCES += [
'ChannelInfo.cpp',
'Fetch.cpp',
'FetchConsumer.cpp',
'FetchController.cpp',
'FetchDriver.cpp',
'FetchObserver.cpp',
'FetchSignal.cpp',
'FetchStream.cpp',
'FetchStreamReader.cpp',
'FetchUtil.cpp',

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

@ -42,6 +42,7 @@ interfaces = [
DIRS += ['interfaces/' + i for i in interfaces]
DIRS += [
'abort',
'animation',
'base',
'bindings',

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

@ -1,7 +1,6 @@
[DEFAULT]
support-files =
fetch_test_framework.js
file_fetch_controller.html
file_fetch_cached_redirect.html
file_fetch_cached_redirect.html^headers^
file_fetch_csp_block_frame.html
@ -28,7 +27,6 @@ support-files =
empty.js^headers^
worker_temporaryFileBlob.js
common_temporaryFileBlob.js
worker_fetch_controller.js
common_readableStreams.js
worker_readableStreams.js
iframe_readableStreams.html
@ -57,7 +55,6 @@ support-files =
[test_fetch_basic_http_sw_reroute.html]
[test_fetch_basic_http_sw_empty_reroute.html]
[test_fetch_cached_redirect.html]
[test_fetch_controller.html]
[test_fetch_cors.html]
skip-if = toolkit == 'android' && debug # Bug 1210282
[test_fetch_cors_sw_reroute.html]