Bug 1700051: part 35) Reduce accessibility of `mSoftText.mDOMMapping` to `private...
[gecko.git] / dom / quota / nsIndexedDBProtocolHandler.cpp
blob174bc42e122123cf4519dbfceab615a11d440121
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 nsIndexedDBProtocolHandler::GetDefaultPort(
34 int32_t* aDefaultPort) {
35 *aDefaultPort = -1;
36 return NS_OK;
39 NS_IMETHODIMP nsIndexedDBProtocolHandler::GetProtocolFlags(
40 uint32_t* aProtocolFlags) {
41 *aProtocolFlags = URI_STD | URI_DANGEROUS_TO_LOAD | URI_DOES_NOT_RETURN_DATA |
42 URI_NON_PERSISTABLE;
43 return NS_OK;
46 NS_IMETHODIMP
47 nsIndexedDBProtocolHandler::NewChannel(nsIURI* aURI, nsILoadInfo* aLoadInfo,
48 nsIChannel** _retval) {
49 return NS_ERROR_NOT_IMPLEMENTED;
52 NS_IMETHODIMP
53 nsIndexedDBProtocolHandler::AllowPort(int32_t aPort, const char* aScheme,
54 bool* _retval) {
55 *_retval = false;
56 return NS_OK;