nsIndexedDBProtocolHandler.cpp (1294B)
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: 3 * 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/. */ 7 8 #include "nsIndexedDBProtocolHandler.h" 9 10 #include <cstdint> 11 12 #include "ErrorList.h" 13 #include "nsIWeakReference.h" 14 #include "nsStandardURL.h" 15 #include "nsStringFwd.h" 16 #include "nscore.h" 17 18 using namespace mozilla::net; 19 20 nsIndexedDBProtocolHandler::nsIndexedDBProtocolHandler() = default; 21 22 nsIndexedDBProtocolHandler::~nsIndexedDBProtocolHandler() = default; 23 24 NS_IMPL_ISUPPORTS(nsIndexedDBProtocolHandler, nsIProtocolHandler, 25 nsISupportsWeakReference) 26 27 NS_IMETHODIMP nsIndexedDBProtocolHandler::GetScheme(nsACString& aScheme) { 28 aScheme.AssignLiteral("indexeddb"); 29 return NS_OK; 30 } 31 32 NS_IMETHODIMP 33 nsIndexedDBProtocolHandler::NewChannel(nsIURI* aURI, nsILoadInfo* aLoadInfo, 34 nsIChannel** _retval) { 35 return NS_ERROR_NOT_IMPLEMENTED; 36 } 37 38 NS_IMETHODIMP 39 nsIndexedDBProtocolHandler::AllowPort(int32_t aPort, const char* aScheme, 40 bool* _retval) { 41 *_retval = false; 42 return NS_OK; 43 }