mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
4ac9bef80d
- Bug 936092, initial DnD support for e10s, r=enndeakin,karlt (3cde556cf) - Bug 1152066 - Remove ugly dynamic loading code now that we can assume this symbol exists. r=roc (04813dd18) - Bug 966395 - Correctly propagate the input language's direction on OSX. r=masayuki/mrbkap (14a21fa0c) - Bug 1158791 - Try harder to avoid Gtk-Critical errors in xpcshell tests. r=karlt (f6cec3b99) - Bug 1153922 - Add a SandboxOptions option for creating the sandbox in a fresh JS::Zone. r=mrbkap (f99b17726) - Bug 968520 - Always use fallible allocator with nsTArray_base::ShrinkCapacity. r=froydnj (b7cf63063) - Bug 1160027 - Move ResourceQueue implementation from header file - r=cpearce (5fabd8c8f) - Bug 1119277 - Remove the process CPU priority parameter and simplify all the associated code. r=khuey, r=dhylands (32d2b0df2) - Goanna -> Gecko (2b16bec4c) - Bug 892371 - Adjust oom_score_adj values for foreground processes according to an LRU policy. r=dhylands, r=khuey (61cdfc3db) - Bug 892371 - Add mochitests covering LRU priority adjustments for both foreground and background processes. r=khuey (46676e34f) - Bug 1164297 - tweaks to logging modules of MediaDecoderStateMachine to remove accessing to env vars. r=cpearce. (e9dc910da) - Bug 1150539: log getUserMedia constraints used in MediaManager:5. r=jesup (161853b66) - Bug 1139027 - Permit running of camera mochitests on B2G desktop. r=mikeh (8bb265db2) - Bug 1145403 - Don't open MediaManager on shutdown. r=jesup (9338eef82) - Bug 1046245 - enumerateDevices w/non-blocking e10s, nsICryptoHMAC, clear cookies, lambdas. r=keeler, florian, billm, jesup (ce9d684a0) - remove StopWebRtcLoc() to be readded in Bug 1219339 - Part2 (7a0c901fc) - Bug 1046245 - IO on STS thread + cleanup BackgroundChild on shutdown r=jesup (e85dd7716) - Bug 579517 follow-up: Remove NSPR types that crept in (35aee15a6) - Bug 1152443 - Fix broken validation which prevented reading of enumerate_devices.txt. r=jesup (4e135355b) - Bug 1143562 - use /data/b2g/mozilla/gmp as the gmp storage folder on B2G. r=cpearce. (ddc07f09a) - Bug 1143562. Part2 - only init |mStorageBaseDir| in the chrome process. r=cpearce (3039a4f44) - remove specific hack, this code is going away anyway (34aed4d6b) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 0 - Make mozIGeckoMediaPluginService::GetPluginVersionForAPI return whether we even have the plugin. r=cpearce. (e6ac61630) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 1 - split GeckoMediaPluginService into a part for chrome and a part for both content and chrome. r=jwwang. (09f8c4a83) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 2 - support asynchronous GMP API getters. r=jwwang,rjesup. (e33266976) - Bug 1143532 - Include pid in the log messages of GMPParent. r=edwin (8486ebc50) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 3 - split the GMP IPDL actors in 2 parts (and use opens to open the second in non-e10s). r=billm. (d17fa36ff) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 4 - make GetNodeId asynchronous. r=jwwang. (db7a21e4a) - Bug 1150049 - tidy up nsImageBoxFrame::Init a little bit; r=dholbert (41c258a71) - Bug 1150266 - fix IPDL thinko for never-inline method declarations; r=bent (445d3420b) - Bug 1150207 - Convert a focus() call to use SpecialPowers to avoid out-of-order focusing behaviour. r=mwargers (4d134848c) - Bug 1148641 - Guard against null parameters to SendSetTargetAPZCNotification. r=botond (8c5f4bb6d) - Bug 1096172 - Fix position reporting of bad charrefs in RCDATA. r=hsivonen. (77100d26d) - Bug 1149971 Part 2: Cet rid of kCurrentProcessId as it makes lots of static initializers. r=dvander (3efaefdba) - remove android widgets (0c2565418) - Bug 1129991 - Remove QuotaManager::SetCurrentWindow(); r=bent (7ccabf88c) - Bug 1133748 - Fix ipdl code for bridged protocols that are also opened. r=billm. (402751d09) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 5 - use bridging for GMP in e10s. r=billm. (e45a87c5f) - Bug 1057908 followup: Add missing 'override' annotation on GMPServiceParent::ActorDestroy method decl. rs=ehsan (48f53b28a) - Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Add nsServiceManagerUtils.h include to WMFDecoderModule.cpp. (67cddb4da) - kill android widgets better (bec243c8d)
478 lines
12 KiB
C++
478 lines
12 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
/* 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 "AudioSink.h"
|
|
#include "MediaDecoderStateMachine.h"
|
|
#include "AudioStream.h"
|
|
#include "prenv.h"
|
|
|
|
namespace mozilla {
|
|
|
|
#ifdef PR_LOGGING
|
|
extern PRLogModuleInfo* gMediaDecoderLog;
|
|
#define SINK_LOG(msg, ...) \
|
|
PR_LOG(gMediaDecoderLog, PR_LOG_DEBUG, ("AudioSink=%p " msg, this, ##__VA_ARGS__))
|
|
#define SINK_LOG_V(msg, ...) \
|
|
PR_LOG(gMediaDecoderLog, PR_LOG_DEBUG+1, ("AudioSink=%p " msg, this, ##__VA_ARGS__))
|
|
#else
|
|
#define SINK_LOG(msg, ...)
|
|
#define SINK_LOG_V(msg, ...)
|
|
#endif
|
|
|
|
AudioSink::OnAudioEndTimeUpdateTask::OnAudioEndTimeUpdateTask(
|
|
MediaDecoderStateMachine* aStateMachine)
|
|
: mMutex("OnAudioEndTimeUpdateTask")
|
|
, mEndTime(0)
|
|
, mStateMachine(aStateMachine)
|
|
{
|
|
}
|
|
|
|
NS_IMETHODIMP
|
|
AudioSink::OnAudioEndTimeUpdateTask::Run() {
|
|
MutexAutoLock lock(mMutex);
|
|
if (mStateMachine) {
|
|
mStateMachine->OnAudioEndTimeUpdate(mEndTime);
|
|
}
|
|
return NS_OK;
|
|
}
|
|
|
|
void
|
|
AudioSink::OnAudioEndTimeUpdateTask::Dispatch(int64_t aEndTime) {
|
|
MutexAutoLock lock(mMutex);
|
|
if (mStateMachine) {
|
|
mEndTime = aEndTime;
|
|
nsRefPtr<AudioSink::OnAudioEndTimeUpdateTask> runnable(this);
|
|
mStateMachine->TaskQueue()->Dispatch(runnable.forget());
|
|
}
|
|
}
|
|
|
|
void
|
|
AudioSink::OnAudioEndTimeUpdateTask::Cancel() {
|
|
MutexAutoLock lock(mMutex);
|
|
mStateMachine = nullptr;
|
|
}
|
|
|
|
// The amount of audio frames that is used to fuzz rounding errors.
|
|
static const int64_t AUDIO_FUZZ_FRAMES = 1;
|
|
|
|
AudioSink::AudioSink(MediaDecoderStateMachine* aStateMachine,
|
|
int64_t aStartTime, AudioInfo aInfo, dom::AudioChannel aChannel)
|
|
: mStateMachine(aStateMachine)
|
|
, mStartTime(aStartTime)
|
|
, mWritten(0)
|
|
, mLastGoodPosition(0)
|
|
, mInfo(aInfo)
|
|
, mChannel(aChannel)
|
|
, mVolume(1.0)
|
|
, mPlaybackRate(1.0)
|
|
, mPreservesPitch(false)
|
|
, mStopAudioThread(false)
|
|
, mSetVolume(false)
|
|
, mSetPlaybackRate(false)
|
|
, mSetPreservesPitch(false)
|
|
, mPlaying(true)
|
|
{
|
|
NS_ASSERTION(mStartTime != -1, "Should have audio start time by now");
|
|
mOnAudioEndTimeUpdateTask = new OnAudioEndTimeUpdateTask(aStateMachine);
|
|
}
|
|
|
|
nsresult
|
|
AudioSink::Init()
|
|
{
|
|
nsresult rv = NS_NewNamedThread("Media Audio",
|
|
getter_AddRefs(mThread),
|
|
nullptr,
|
|
MEDIA_THREAD_STACK_SIZE);
|
|
if (NS_FAILED(rv)) {
|
|
mStateMachine->OnAudioSinkError();
|
|
return rv;
|
|
}
|
|
|
|
nsCOMPtr<nsIRunnable> event = NS_NewRunnableMethod(this, &AudioSink::AudioLoop);
|
|
rv = mThread->Dispatch(event, NS_DISPATCH_NORMAL);
|
|
if (NS_FAILED(rv)) {
|
|
mStateMachine->OnAudioSinkError();
|
|
return rv;
|
|
}
|
|
|
|
return NS_OK;
|
|
}
|
|
|
|
int64_t
|
|
AudioSink::GetPosition()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
|
|
int64_t pos;
|
|
if (mAudioStream &&
|
|
(pos = mAudioStream->GetPosition()) >= 0) {
|
|
// Update the last good position when we got a good one.
|
|
mLastGoodPosition = pos;
|
|
}
|
|
|
|
return mLastGoodPosition;
|
|
}
|
|
|
|
bool
|
|
AudioSink::HasUnplayedFrames()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
// Experimentation suggests that GetPositionInFrames() is zero-indexed,
|
|
// so we need to add 1 here before comparing it to mWritten.
|
|
return mAudioStream && mAudioStream->GetPositionInFrames() + 1 < mWritten;
|
|
}
|
|
|
|
void
|
|
AudioSink::PrepareToShutdown()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
mStopAudioThread = true;
|
|
if (mAudioStream) {
|
|
mAudioStream->Cancel();
|
|
}
|
|
GetReentrantMonitor().NotifyAll();
|
|
}
|
|
|
|
void
|
|
AudioSink::Shutdown()
|
|
{
|
|
mOnAudioEndTimeUpdateTask->Cancel();
|
|
mThread->Shutdown();
|
|
mThread = nullptr;
|
|
MOZ_ASSERT(!mAudioStream);
|
|
}
|
|
|
|
void
|
|
AudioSink::SetVolume(double aVolume)
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
mVolume = aVolume;
|
|
mSetVolume = true;
|
|
}
|
|
|
|
void
|
|
AudioSink::SetPlaybackRate(double aPlaybackRate)
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
NS_ASSERTION(mPlaybackRate != 0, "Don't set the playbackRate to 0 on AudioStream");
|
|
mPlaybackRate = aPlaybackRate;
|
|
mSetPlaybackRate = true;
|
|
}
|
|
|
|
void
|
|
AudioSink::SetPreservesPitch(bool aPreservesPitch)
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
mPreservesPitch = aPreservesPitch;
|
|
mSetPreservesPitch = true;
|
|
}
|
|
|
|
void
|
|
AudioSink::StartPlayback()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
mPlaying = true;
|
|
GetReentrantMonitor().NotifyAll();
|
|
}
|
|
|
|
void
|
|
AudioSink::StopPlayback()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
mPlaying = false;
|
|
GetReentrantMonitor().NotifyAll();
|
|
}
|
|
|
|
void
|
|
AudioSink::AudioLoop()
|
|
{
|
|
AssertOnAudioThread();
|
|
SINK_LOG("AudioLoop started");
|
|
|
|
if (NS_FAILED(InitializeAudioStream())) {
|
|
NS_WARNING("Initializing AudioStream failed.");
|
|
mStateMachine->DispatchOnAudioSinkError();
|
|
return;
|
|
}
|
|
|
|
while (1) {
|
|
{
|
|
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
|
|
WaitForAudioToPlay();
|
|
if (!IsPlaybackContinuing()) {
|
|
break;
|
|
}
|
|
}
|
|
// See if there's a gap in the audio. If there is, push silence into the
|
|
// audio hardware, so we can play across the gap.
|
|
// Calculate the timestamp of the next chunk of audio in numbers of
|
|
// samples.
|
|
NS_ASSERTION(AudioQueue().GetSize() > 0, "Should have data to play");
|
|
CheckedInt64 sampleTime = UsecsToFrames(AudioQueue().PeekFront()->mTime, mInfo.mRate);
|
|
|
|
// Calculate the number of frames that have been pushed onto the audio hardware.
|
|
CheckedInt64 playedFrames = UsecsToFrames(mStartTime, mInfo.mRate) +
|
|
static_cast<int64_t>(mWritten);
|
|
|
|
CheckedInt64 missingFrames = sampleTime - playedFrames;
|
|
if (!missingFrames.isValid() || !sampleTime.isValid()) {
|
|
NS_WARNING("Int overflow adding in AudioLoop");
|
|
break;
|
|
}
|
|
|
|
if (missingFrames.value() > AUDIO_FUZZ_FRAMES) {
|
|
// The next audio chunk begins some time after the end of the last chunk
|
|
// we pushed to the audio hardware. We must push silence into the audio
|
|
// hardware so that the next audio chunk begins playback at the correct
|
|
// time.
|
|
missingFrames = std::min<int64_t>(UINT32_MAX, missingFrames.value());
|
|
mWritten += PlaySilence(static_cast<uint32_t>(missingFrames.value()));
|
|
} else {
|
|
mWritten += PlayFromAudioQueue();
|
|
}
|
|
int64_t endTime = GetEndTime();
|
|
if (endTime != -1) {
|
|
mOnAudioEndTimeUpdateTask->Dispatch(endTime);
|
|
}
|
|
}
|
|
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
|
|
MOZ_ASSERT(mStopAudioThread || AudioQueue().AtEndOfStream());
|
|
if (!mStopAudioThread && mPlaying) {
|
|
Drain();
|
|
}
|
|
SINK_LOG("AudioLoop complete");
|
|
Cleanup();
|
|
SINK_LOG("AudioLoop exit");
|
|
}
|
|
|
|
nsresult
|
|
AudioSink::InitializeAudioStream()
|
|
{
|
|
// AudioStream initialization can block for extended periods in unusual
|
|
// circumstances, so we take care to drop the decoder monitor while
|
|
// initializing.
|
|
RefPtr<AudioStream> audioStream(new AudioStream());
|
|
nsresult rv = audioStream->Init(mInfo.mChannels, mInfo.mRate,
|
|
mChannel, AudioStream::HighLatency);
|
|
if (NS_FAILED(rv)) {
|
|
audioStream->Shutdown();
|
|
return rv;
|
|
}
|
|
|
|
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
|
|
mAudioStream = audioStream;
|
|
UpdateStreamSettings();
|
|
|
|
return NS_OK;
|
|
}
|
|
|
|
void
|
|
AudioSink::Drain()
|
|
{
|
|
MOZ_ASSERT(mPlaying && !mAudioStream->IsPaused());
|
|
AssertCurrentThreadInMonitor();
|
|
// If the media was too short to trigger the start of the audio stream,
|
|
// start it now.
|
|
mAudioStream->Start();
|
|
{
|
|
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
|
|
mAudioStream->Drain();
|
|
}
|
|
}
|
|
|
|
void
|
|
AudioSink::Cleanup()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
nsRefPtr<AudioStream> audioStream;
|
|
audioStream.swap(mAudioStream);
|
|
// Suppress the callback when the stop is requested by MediaDecoderStateMachine.
|
|
if (!mStopAudioThread) {
|
|
mStateMachine->DispatchOnAudioSinkComplete();
|
|
}
|
|
|
|
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
|
|
audioStream->Shutdown();
|
|
}
|
|
|
|
bool
|
|
AudioSink::ExpectMoreAudioData()
|
|
{
|
|
return AudioQueue().GetSize() == 0 && !AudioQueue().IsFinished();
|
|
}
|
|
|
|
void
|
|
AudioSink::WaitForAudioToPlay()
|
|
{
|
|
// Wait while we're not playing, and we're not shutting down, or we're
|
|
// playing and we've got no audio to play.
|
|
AssertCurrentThreadInMonitor();
|
|
while (!mStopAudioThread && (!mPlaying || ExpectMoreAudioData())) {
|
|
if (!mPlaying && !mAudioStream->IsPaused()) {
|
|
mAudioStream->Pause();
|
|
}
|
|
GetReentrantMonitor().Wait();
|
|
}
|
|
}
|
|
|
|
bool
|
|
AudioSink::IsPlaybackContinuing()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
if (mPlaying && mAudioStream->IsPaused()) {
|
|
mAudioStream->Resume();
|
|
}
|
|
|
|
// If we're shutting down, captured, or at EOS, break out and exit the audio
|
|
// thread.
|
|
if (mStopAudioThread || AudioQueue().AtEndOfStream()) {
|
|
return false;
|
|
}
|
|
|
|
UpdateStreamSettings();
|
|
|
|
return true;
|
|
}
|
|
|
|
uint32_t
|
|
AudioSink::PlaySilence(uint32_t aFrames)
|
|
{
|
|
// Maximum number of bytes we'll allocate and write at once to the audio
|
|
// hardware when the audio stream contains missing frames and we're
|
|
// writing silence in order to fill the gap. We limit our silence-writes
|
|
// to 32KB in order to avoid allocating an impossibly large chunk of
|
|
// memory if we encounter a large chunk of silence.
|
|
const uint32_t SILENCE_BYTES_CHUNK = 32 * 1024;
|
|
|
|
AssertOnAudioThread();
|
|
NS_ASSERTION(!mAudioStream->IsPaused(), "Don't play when paused");
|
|
uint32_t maxFrames = SILENCE_BYTES_CHUNK / mInfo.mChannels / sizeof(AudioDataValue);
|
|
uint32_t frames = std::min(aFrames, maxFrames);
|
|
SINK_LOG_V("playing %u frames of silence", aFrames);
|
|
WriteSilence(frames);
|
|
return frames;
|
|
}
|
|
|
|
uint32_t
|
|
AudioSink::PlayFromAudioQueue()
|
|
{
|
|
AssertOnAudioThread();
|
|
NS_ASSERTION(!mAudioStream->IsPaused(), "Don't play when paused");
|
|
nsRefPtr<AudioData> audio(AudioQueue().PopFront());
|
|
|
|
SINK_LOG_V("playing %u frames of audio at time %lld",
|
|
audio->mFrames, audio->mTime);
|
|
if (audio->mRate == mInfo.mRate && audio->mChannels == mInfo.mChannels) {
|
|
mAudioStream->Write(audio->mAudioData, audio->mFrames);
|
|
} else {
|
|
SINK_LOG_V("mismatched sample format mInfo=[%uHz/%u channels] audio=[%uHz/%u channels]",
|
|
mInfo.mRate, mInfo.mChannels, audio->mRate, audio->mChannels);
|
|
PlaySilence(audio->mFrames);
|
|
}
|
|
|
|
StartAudioStreamPlaybackIfNeeded();
|
|
|
|
if (audio->mOffset != -1) {
|
|
mStateMachine->DispatchOnPlaybackOffsetUpdate(audio->mOffset);
|
|
}
|
|
return audio->mFrames;
|
|
}
|
|
|
|
void
|
|
AudioSink::UpdateStreamSettings()
|
|
{
|
|
AssertCurrentThreadInMonitor();
|
|
|
|
bool setVolume = mSetVolume;
|
|
bool setPlaybackRate = mSetPlaybackRate;
|
|
bool setPreservesPitch = mSetPreservesPitch;
|
|
double volume = mVolume;
|
|
double playbackRate = mPlaybackRate;
|
|
bool preservesPitch = mPreservesPitch;
|
|
|
|
mSetVolume = false;
|
|
mSetPlaybackRate = false;
|
|
mSetPreservesPitch = false;
|
|
|
|
{
|
|
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
|
|
if (setVolume) {
|
|
mAudioStream->SetVolume(volume);
|
|
}
|
|
|
|
if (setPlaybackRate &&
|
|
NS_FAILED(mAudioStream->SetPlaybackRate(playbackRate))) {
|
|
NS_WARNING("Setting the playback rate failed in AudioSink.");
|
|
}
|
|
|
|
if (setPreservesPitch &&
|
|
NS_FAILED(mAudioStream->SetPreservesPitch(preservesPitch))) {
|
|
NS_WARNING("Setting the pitch preservation failed in AudioSink.");
|
|
}
|
|
}
|
|
}
|
|
|
|
void
|
|
AudioSink::StartAudioStreamPlaybackIfNeeded()
|
|
{
|
|
// This value has been chosen empirically.
|
|
const uint32_t MIN_WRITE_BEFORE_START_USECS = 200000;
|
|
|
|
// We want to have enough data in the buffer to start the stream.
|
|
if (static_cast<double>(mAudioStream->GetWritten()) / mAudioStream->GetRate() >=
|
|
static_cast<double>(MIN_WRITE_BEFORE_START_USECS) / USECS_PER_S) {
|
|
mAudioStream->Start();
|
|
}
|
|
}
|
|
|
|
void
|
|
AudioSink::WriteSilence(uint32_t aFrames)
|
|
{
|
|
uint32_t numSamples = aFrames * mInfo.mChannels;
|
|
nsAutoTArray<AudioDataValue, 1000> buf;
|
|
buf.SetLength(numSamples);
|
|
memset(buf.Elements(), 0, numSamples * sizeof(AudioDataValue));
|
|
mAudioStream->Write(buf.Elements(), aFrames);
|
|
|
|
StartAudioStreamPlaybackIfNeeded();
|
|
}
|
|
|
|
int64_t
|
|
AudioSink::GetEndTime()
|
|
{
|
|
CheckedInt64 playedUsecs = FramesToUsecs(mWritten, mInfo.mRate) + mStartTime;
|
|
if (!playedUsecs.isValid()) {
|
|
NS_WARNING("Int overflow calculating audio end time");
|
|
return -1;
|
|
}
|
|
return playedUsecs.value();
|
|
}
|
|
|
|
MediaQueue<AudioData>&
|
|
AudioSink::AudioQueue()
|
|
{
|
|
return mStateMachine->AudioQueue();
|
|
}
|
|
|
|
ReentrantMonitor&
|
|
AudioSink::GetReentrantMonitor()
|
|
{
|
|
return mStateMachine->mDecoder->GetReentrantMonitor();
|
|
}
|
|
|
|
void
|
|
AudioSink::AssertCurrentThreadInMonitor()
|
|
{
|
|
return mStateMachine->AssertCurrentThreadInMonitor();
|
|
}
|
|
|
|
void
|
|
AudioSink::AssertOnAudioThread()
|
|
{
|
|
MOZ_ASSERT(IsCurrentThread(mThread));
|
|
}
|
|
|
|
} // namespace mozilla
|