chromium/third_party/blink/renderer/modules/webdatabase/database_authorizer.cc

/*
 * Copyright (C) 2007 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1.  Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 * 2.  Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in the
 *     documentation and/or other materials provided with the distribution.
 * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
 *     its contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "third_party/blink/renderer/modules/webdatabase/database_authorizer.h"

#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/wtf/hash_set.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/case_folding_hash.h"
#include "third_party/blink/renderer/platform/wtf/threading.h"

namespace blink {

DatabaseAuthorizer::DatabaseAuthorizer(const String& database_info_table_name)
    :{}

DatabaseAuthorizer::~DatabaseAuthorizer() = default;

void DatabaseAuthorizer::Reset() {}

void DatabaseAuthorizer::ResetDeletes() {}

namespace {
FunctionNameList;

const FunctionNameList& AllowedFunctions() {}
}

int DatabaseAuthorizer::CreateTable(const String& table_name) {}

int DatabaseAuthorizer::CreateTempTable(const String& table_name) {}

int DatabaseAuthorizer::DropTable(const String& table_name) {}

int DatabaseAuthorizer::DropTempTable(const String& table_name) {}

int DatabaseAuthorizer::AllowAlterTable(const String&,
                                        const String& table_name) {}

int DatabaseAuthorizer::CreateIndex(const String&, const String& table_name) {}

int DatabaseAuthorizer::CreateTempIndex(const String&,
                                        const String& table_name) {}

int DatabaseAuthorizer::DropIndex(const String&, const String& table_name) {}

int DatabaseAuthorizer::DropTempIndex(const String&, const String& table_name) {}

int DatabaseAuthorizer::CreateTrigger(const String&, const String& table_name) {}

int DatabaseAuthorizer::CreateTempTrigger(const String&,
                                          const String& table_name) {}

int DatabaseAuthorizer::DropTrigger(const String&, const String& table_name) {}

int DatabaseAuthorizer::DropTempTrigger(const String&,
                                        const String& table_name) {}

int DatabaseAuthorizer::CreateView(const String&) {}

int DatabaseAuthorizer::CreateTempView(const String&) {}

int DatabaseAuthorizer::DropView(const String&) {}

int DatabaseAuthorizer::DropTempView(const String&) {}

int DatabaseAuthorizer::CreateVTable(const String& table_name,
                                     const String& module_name) {}

int DatabaseAuthorizer::DropVTable(const String& table_name,
                                   const String& module_name) {}

int DatabaseAuthorizer::AllowDelete(const String& table_name) {}

int DatabaseAuthorizer::AllowInsert(const String& table_name) {}

int DatabaseAuthorizer::AllowUpdate(const String& table_name, const String&) {}

int DatabaseAuthorizer::AllowTransaction() {}

int DatabaseAuthorizer::AllowRead(const String& table_name, const String&) {}

int DatabaseAuthorizer::AllowReindex(const String&) {}

int DatabaseAuthorizer::AllowAnalyze(const String& table_name) {}

int DatabaseAuthorizer::AllowPragma(const String&, const String&) {}

int DatabaseAuthorizer::AllowFunction(const String& function_name) {}

void DatabaseAuthorizer::Disable() {}

void DatabaseAuthorizer::Enable() {}

bool DatabaseAuthorizer::AllowWrite() {}

void DatabaseAuthorizer::SetPermissions(int permissions) {}

int DatabaseAuthorizer::DenyBasedOnTableName(const String& table_name) const {}

int DatabaseAuthorizer::UpdateDeletesBasedOnTableName(
    const String& table_name) {}

}  // namespace blink