diff options
Diffstat (limited to 'Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h')
-rw-r--r-- | Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h b/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h index c00b0ab56..20fe4654f 100644 --- a/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h +++ b/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. + * Copyright (C) 2008, 2009, 2013, 2014, 2015, 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -10,10 +10,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * 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 @@ -24,10 +24,9 @@ * */ -#ifndef WorkerGlobalScopeIndexedDatabase_h -#define WorkerGlobalScopeIndexedDatabase_h +#pragma once -#if ENABLE(INDEXED_DATABASE) +#if ENABLE(INDEXED_DATABASE_IN_WORKERS) #include "Supplementable.h" #include <wtf/text/WTFString.h> @@ -35,29 +34,29 @@ namespace WebCore { class IDBFactory; -class IDBFactoryBackendInterface; -class ScriptExecutionContext; +class WorkerGlobalScope; -class WorkerGlobalScopeIndexedDatabase : public Supplement<ScriptExecutionContext> { +namespace IDBClient { +class IDBConnectionProxy; +} + +class WorkerGlobalScopeIndexedDatabase : public Supplement<WorkerGlobalScope> { public: + explicit WorkerGlobalScopeIndexedDatabase(WorkerGlobalScope&, IDBClient::IDBConnectionProxy&); virtual ~WorkerGlobalScopeIndexedDatabase(); - static WorkerGlobalScopeIndexedDatabase* from(ScriptExecutionContext*); - static IDBFactory* indexedDB(ScriptExecutionContext*); + static IDBFactory* indexedDB(WorkerGlobalScope&); private: - explicit WorkerGlobalScopeIndexedDatabase(const String& databaseDirectoryIdentifier); - IDBFactory* indexedDB(); + static const char* supplementName(); + static WorkerGlobalScopeIndexedDatabase* from(WorkerGlobalScope&); - String m_databaseDirectoryIdentifier; - RefPtr<IDBFactoryBackendInterface> m_factoryBackend; RefPtr<IDBFactory> m_idbFactory; + Ref<IDBClient::IDBConnectionProxy> m_connectionProxy; }; } // namespace WebCore -#endif // ENABLE(INDEXED_DATABASE) - -#endif // WorkerGlobalScopeIndexedDatabase_h +#endif // ENABLE(INDEXED_DATABASE_IN_WORKERS) |