mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D15040 --HG-- extra : rebase_source : d89ac470241cb6f6a43c29c6e90b1c0e4fc78028 extra : source : b0444e0bc801f828b49f9953a73498cf5ff5024b
29 lines
785 B
C++
29 lines
785 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"
|
|
|
|
// 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);
|
|
|
|
return NS_OK;
|
|
}
|
|
|
|
void UnloadDocShellModule() {
|
|
nsSHistory::Shutdown();
|
|
nsSHEntryShared::Shutdown();
|
|
}
|
|
|
|
} // namespace mozilla
|