gecko-dev/toolkit/mozapps/extensions/AddonManagerWebAPI.h
Kris Maglione a2f509792d Bug 1368102: Part 1 - Make AddonManagerWebAPI::IsValidSite public. r=aswan
MozReview-Commit-ID: JNNyfY8eabB

--HG--
extra : rebase_source : bc49ee18d158a41f6102684e24305c15ee237c58
2017-05-23 12:35:35 -07:00

33 lines
796 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/. */
#ifndef addonmanagerwebapi_h_
#define addonmanagerwebapi_h_
#include "nsPIDOMWindow.h"
namespace mozilla {
class AddonManagerWebAPI {
public:
static bool IsAPIEnabled(JSContext* cx, JSObject* obj);
static bool IsValidSite(nsIURI* uri);
};
namespace dom {
class AddonManagerPermissions {
public:
static bool IsHostPermitted(const GlobalObject&, const nsAString& host);
};
} // namespace mozilla::dom
} // namespace mozilla
#endif // addonmanagerwebapi_h_