author Nicholas Nethercote <>
Thu, 01 Sep 2016 15:01:16 +1000
changeset 312356 93657f8dedaafa384bcd49c71b52e195ec968de8
parent 305980 eb0a5aab8c1338f9b02c1c91adb95f3436661960
child 312605 6dec2542ba39618e8fe7035abfa6d10c6ad45be7
permissions -rw-r--r--
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm. The new name makes the sense of the condition much clearer. E.g. compare: NS_WARN_IF_FALSE(!rv.Failed()); with: NS_WARNING_ASSERTION(!rv.Failed()); The new name also makes it clearer that it only has effect in debug builds, because that's standard for assertions.

/* 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 PBackground;
include protocol PQuotaRequest;
include protocol PQuotaUsageRequest;

include PBackgroundSharedTypes;

include "mozilla/dom/quota/SerializationHelpers.h";

using mozilla::dom::quota::PersistenceType
  from "mozilla/dom/quota/PersistenceType.h";

namespace mozilla {
namespace dom {
namespace quota {

struct UsageParams
  PrincipalInfo principalInfo;
  bool getGroupUsage;

union UsageRequestParams

struct ClearOriginParams
  PrincipalInfo principalInfo;
  PersistenceType persistenceType;
  bool persistenceTypeIsExplicit;

struct ClearOriginsParams
  nsString pattern;

struct ClearAllParams

struct ResetAllParams

union RequestParams

protocol PQuota
  manager PBackground;

  manages PQuotaRequest;
  manages PQuotaUsageRequest;

  async __delete__();

  async PQuotaUsageRequest(UsageRequestParams params);

  async PQuotaRequest(RequestParams params);

  async StartIdleMaintenance();

  async StopIdleMaintenance();

} // namespace quota
} // namespace dom
} // namespace mozilla