author Kris Maglione <>
Thu, 14 Feb 2019 17:54:00 -0800
changeset 517406 7436c0f5b8b1583d20d5ea2d1d9d3b2c665bdf33
parent 515429 04eecadabb485bd398c6c37e258ba47b946e7982
permissions -rw-r--r--
Fix botched backout (bug 1524687). r=bustage

/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
/* 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 */

include protocol PContent;

namespace mozilla {
namespace dom {

 * Protocol used to relay chrome observer notifications related to clearing data
 * to SessionStorageManager instances in content processes. A single instance is
 * created by each content process when LocalStorage NextGen is enabled. When
 * LSNG is disabled, the notifications are instead propagated via
 * PBackgroundStorageChild. This does mean there are potentially slight ordering
 * differences in when the notification will be received and processed. It's
 * okay for this protocol to be managed by PContent rather than PBackground
 * because these notifications are both rare and to-child-only. (Legacy
 * LocalStorage was moved to PBackground from PContent because of parent-process
 * main-thread contention for the processing of "parent:" messages in a very
 * performance-sensitive context!)
async protocol PSessionStorageObserver
  manager PContent;

  async DeleteMe();

  async __delete__();

  async Observe(nsCString topic,
                nsString originAttributesPattern,
                nsCString originScope);