Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / quota / nsIndexedDBProtocolHandler.cpp
blob10ca278098aa50b3b9a4ffbaa80f236a7b6de77d
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim:set ts=2 sts=2 sw=2 et cin:
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "nsIndexedDBProtocolHandler.h"
10 #include <cstdint>
11 #include "ErrorList.h"
12 #include "mozilla/Assertions.h"
13 #include "mozilla/MacroForEach.h"
14 #include "nsIWeakReference.h"
15 #include "nsStandardURL.h"
16 #include "nsStringFwd.h"
17 #include "nscore.h"
19 using namespace mozilla::net;
21 nsIndexedDBProtocolHandler::nsIndexedDBProtocolHandler() = default;
23 nsIndexedDBProtocolHandler::~nsIndexedDBProtocolHandler() = default;
25 NS_IMPL_ISUPPORTS(nsIndexedDBProtocolHandler, nsIProtocolHandler,
26 nsISupportsWeakReference)
28 NS_IMETHODIMP nsIndexedDBProtocolHandler::GetScheme(nsACString& aScheme) {
29 aScheme.AssignLiteral("indexeddb");
30 return NS_OK;
33 NS_IMETHODIMP
34 nsIndexedDBProtocolHandler::NewChannel(nsIURI* aURI, nsILoadInfo* aLoadInfo,
35 nsIChannel** _retval) {
36 return NS_ERROR_NOT_IMPLEMENTED;
39 NS_IMETHODIMP
40 nsIndexedDBProtocolHandler::AllowPort(int32_t aPort, const char* aScheme,
41 bool* _retval) {
42 *_retval = false;
43 return NS_OK;