replaced by .editorconfig # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D287843
30 lines
773 B
C++
30 lines
773 B
C++
/* 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 "NotifyUtils.h"
|
|
|
|
#include "mozilla/StaticPrefs_dom.h"
|
|
#include "mozilla/dom/quota/NotifyUtilsCommon.h"
|
|
|
|
namespace mozilla::dom::localstorage {
|
|
|
|
void NotifyDatabaseWorkStarted() {
|
|
if (!StaticPrefs::dom_storage_testing()) {
|
|
return;
|
|
}
|
|
|
|
quota::NotifyObserversOnMainThread("LocalStorage::DatabaseWorkStarted");
|
|
}
|
|
|
|
void NotifyRequestFinalizationStarted() {
|
|
if (!StaticPrefs::dom_storage_testing()) {
|
|
return;
|
|
}
|
|
|
|
quota::NotifyObserversOnMainThread(
|
|
"LocalStorage::RequestFinalizationStarted");
|
|
}
|
|
|
|
} // namespace mozilla::dom::localstorage
|