Skip to content

Commit

Permalink
Bug 1674845 - part2 : create 'autoplay' subfolder and move related fi…
Browse files Browse the repository at this point in the history
…les. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D95879
  • Loading branch information
alastor0325 committed Nov 5, 2020
1 parent 9fe8b67 commit 35d0af6
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@

#include "AutoplayPolicy.h"

#include "mozilla/Logging.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/AudioContext.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/FeaturePolicyUtils.h"
#include "mozilla/dom/HTMLMediaElement.h"
#include "mozilla/dom/HTMLMediaElementBinding.h"
#include "mozilla/dom/UserActivation.h"
#include "mozilla/dom/WindowContext.h"
#include "mozilla/Logging.h"
#include "mozilla/MediaManager.h"
#include "mozilla/Preferences.h"
#include "mozilla/Services.h"
#include "mozilla/StaticPrefs_media.h"
#include "nsContentUtils.h"
#include "nsGlobalWindowInner.h"
#include "nsIAutoplay.h"
#include "nsContentUtils.h"
#include "mozilla/dom/Document.h"
#include "MediaManager.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsPIDOMWindow.h"
#include "nsIPrincipal.h"
#include "mozilla/Services.h"
#include "mozilla/StaticPrefs_media.h"
#include "nsIPermissionManager.h"
#include "nsIPrincipal.h"
#include "nsPIDOMWindow.h"

mozilla::LazyLogModule gAutoplayPermissionLog("Autoplay");

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions dom/media/autoplay/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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("test/**"):
BUG_COMPONENT = ("Core", "Audio/Video: Playback")

EXPORTS += [
"AutoplayPolicy.h",
"GVAutoplayPermissionRequest.h",
"GVAutoplayRequestStatusIPC.h",
"GVAutoplayRequestUtils.h",
]

UNIFIED_SOURCES += [
"AutoplayPolicy.cpp",
"GVAutoplayPermissionRequest.cpp",
]

XPIDL_MODULE = "autoplay"
XPIDL_SOURCES += [
"nsIAutoplay.idl",
]

include("/ipc/chromium/chromium-config.mozbuild")

FINAL_LIBRARY = "xul"
File renamed without changes.
8 changes: 1 addition & 7 deletions dom/media/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ with Files("GetUserMedia*"):
BUG_COMPONENT = component_av

DIRS += [
"autoplay",
"doctor",
"eme",
"encoder",
Expand Down Expand Up @@ -92,7 +93,6 @@ if CONFIG["MOZ_WEBRTC"]:

XPIDL_SOURCES += [
"nsIAudioDeviceInfo.idl",
"nsIAutoplay.idl",
"nsIDOMNavigatorUserMedia.idl",
"nsIMediaManager.idl",
]
Expand All @@ -119,7 +119,6 @@ EXPORTS += [
"AudioSegment.h",
"AudioStream.h",
"AudioThreadRegistry.h",
"AutoplayPolicy.h",
"BackgroundVideoDecodingPermissionObserver.h",
"Benchmark.h",
"BitReader.h",
Expand All @@ -137,9 +136,6 @@ EXPORTS += [
"FileBlockCache.h",
"ForwardedInputTrack.h",
"FrameStatistics.h",
"GVAutoplayPermissionRequest.h",
"GVAutoplayRequestStatusIPC.h",
"GVAutoplayRequestUtils.h",
"ImageToI420.h",
"Intervals.h",
"MediaCache.h",
Expand Down Expand Up @@ -247,7 +243,6 @@ UNIFIED_SOURCES += [
"AudioStreamTrack.cpp",
"AudioTrack.cpp",
"AudioTrackList.cpp",
"AutoplayPolicy.cpp",
"BackgroundVideoDecodingPermissionObserver.cpp",
"BaseMediaResource.cpp",
"Benchmark.cpp",
Expand All @@ -266,7 +261,6 @@ UNIFIED_SOURCES += [
"GetUserMediaRequest.cpp",
"GraphDriver.cpp",
"GraphRunner.cpp",
"GVAutoplayPermissionRequest.cpp",
"ImageToI420.cpp",
"MediaCache.cpp",
"MediaContainerType.cpp",
Expand Down
2 changes: 1 addition & 1 deletion tools/lint/rejected-words.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ avoid-blacklist-and-whitelist:
- dom/ipc/ContentParent.cpp
- dom/ipc/fuzztest/content_parent_ipc_libfuzz.cpp
- dom/ipc/URLClassifierParent.cpp
- dom/media/AutoplayPolicy.cpp
- dom/media/autoplay/AutoplayPolicy.cpp
- dom/media/gmp/GMPChild.cpp
- dom/media/ipc/RDDProcessManager.cpp
- dom/media/ipc/RemoteDecoderManagerParent.cpp
Expand Down

0 comments on commit 35d0af6

Please sign in to comment.