Issue #80 - De-unify dom/indexedDB

This commit is contained in:
Moonchild 2020-04-21 15:28:03 +00:00 • committed by Roy Tam
commit 9a61935395
9 changed files with 20 additions and 3 deletions

View file

@ -16,6 +16,7 @@
#include "IDBTransaction.h"
#include "IDBFactory.h"
#include "IndexedDatabaseManager.h"
#include "KeyPath.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/EventDispatcher.h"
#include "MainThreadUtils.h"
@ -54,13 +55,15 @@
// Include this last to avoid path problems on Windows.
#include "ActorsChild.h"
namespace mozilla {
namespace dom {
using namespace mozilla::dom::indexedDB;
using namespace mozilla::dom::quota;
using namespace mozilla::ipc;
using namespace mozilla::services;
namespace mozilla {
namespace dom {
namespace {
const char kCycleCollectionObserverTopic[] = "cycle-collector-end";

View file

@ -41,6 +41,8 @@
#include "nsContentUtils.h" // For assertions.
#endif
using namespace mozilla::dom::indexedDB;
namespace mozilla {
namespace dom {

View file

@ -12,6 +12,8 @@
#include "mozilla/dom/IDBFileHandleBinding.h"
#include "mozilla/dom/filehandle/ActorsChild.h"
#include "mozilla/EventDispatcher.h"
#include "nsContentUtils.h"
#include "nsQueryObject.h"
#include "nsServiceManagerUtils.h"
#include "nsWidgetsCID.h"

View file

@ -23,6 +23,9 @@
// Include this last to avoid path problems on Windows.
#include "ActorsChild.h"
using namespace mozilla::dom;
using namespace mozilla::dom::indexedDB;
namespace mozilla {
namespace dom {

View file

@ -52,6 +52,8 @@
// Include this last to avoid path problems on Windows.
#include "ActorsChild.h"
using namespace mozilla::dom::indexedDB;
namespace mozilla {
namespace dom {

View file

@ -18,6 +18,7 @@
#include "mozilla/ipc/BackgroundChild.h"
#include "nsAutoPtr.h"
#include "nsPIDOMWindow.h"
#include "nsQueryObject.h"
#include "nsServiceManagerUtils.h"
#include "nsTHashtable.h"
#include "ProfilerHelpers.h"

View file

@ -11,10 +11,12 @@
#include "nsCharSeparatedTokenizer.h"
#include "nsJSUtils.h"
#include "nsPrintfCString.h"
#include "xpcpublic.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/BlobBinding.h"
#include "mozilla/dom/File.h" // for Blob
#include "mozilla/dom/IDBObjectStoreBinding.h"
namespace mozilla {

View file

@ -7,6 +7,8 @@
#ifndef mozilla_dom_indexeddb_scripterrorhelper_h__
#define mozilla_dom_indexeddb_scripterrorhelper_h__
#include "nsString.h"
class nsAString;
namespace mozilla {

View file

@ -45,7 +45,7 @@ EXPORTS.mozilla.dom.indexedDB += [
'SerializationHelpers.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'ActorsChild.cpp',
'FileInfo.cpp',
'FileSnapshot.cpp',