mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 04:39:03 +02:00
Backed out changeset 214e4a11be0d (bug 1570255) Backed out changeset db066dda1bb8 (bug 1570255) Backed out changeset d9f75d88613e (bug 1570255) Backed out changeset fe2d4790b73a (bug 1629866)
32 lines
913 B
C++
32 lines
913 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* 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 "mozilla/dom/BrowsingContext.h"
|
|
#include "mozilla/dom/BrowsingContextGroup.h"
|
|
#include "mozilla/dom/SHEntryChild.h"
|
|
|
|
// session history
|
|
#include "nsSHEntryShared.h"
|
|
#include "nsSHistory.h"
|
|
|
|
namespace mozilla {
|
|
|
|
// The one time initialization for this module
|
|
nsresult InitDocShellModule() {
|
|
mozilla::dom::BrowsingContext::Init();
|
|
nsresult rv = nsSHistory::Startup();
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
mozilla::dom::SHEntryChildShared::Init();
|
|
|
|
return NS_OK;
|
|
}
|
|
|
|
void UnloadDocShellModule() {
|
|
nsSHistory::Shutdown();
|
|
nsSHEntryShared::Shutdown();
|
|
}
|
|
|
|
} // namespace mozilla
|