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");
33 NS_IMETHODIMP
nsIndexedDBProtocolHandler::GetDefaultPort(
34 int32_t* aDefaultPort
) {
39 NS_IMETHODIMP
nsIndexedDBProtocolHandler::GetProtocolFlags(
40 uint32_t* aProtocolFlags
) {
41 *aProtocolFlags
= URI_STD
| URI_DANGEROUS_TO_LOAD
| URI_DOES_NOT_RETURN_DATA
|
47 nsIndexedDBProtocolHandler::NewChannel(nsIURI
* aURI
, nsILoadInfo
* aLoadInfo
,
48 nsIChannel
** _retval
) {
49 return NS_ERROR_NOT_IMPLEMENTED
;
53 nsIndexedDBProtocolHandler::AllowPort(int32_t aPort
, const char* aScheme
,