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"
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"
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");
34 nsIndexedDBProtocolHandler::NewChannel(nsIURI
* aURI
, nsILoadInfo
* aLoadInfo
,
35 nsIChannel
** _retval
) {
36 return NS_ERROR_NOT_IMPLEMENTED
;
40 nsIndexedDBProtocolHandler::AllowPort(int32_t aPort
, const char* aScheme
,