diff options
Diffstat (limited to 'Source/WebCore/inspector/InspectorDatabaseResource.h')
-rw-r--r-- | Source/WebCore/inspector/InspectorDatabaseResource.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/Source/WebCore/inspector/InspectorDatabaseResource.h b/Source/WebCore/inspector/InspectorDatabaseResource.h index ccd09c80c..e19241f72 100644 --- a/Source/WebCore/inspector/InspectorDatabaseResource.h +++ b/Source/WebCore/inspector/InspectorDatabaseResource.h @@ -12,7 +12,7 @@ * 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 + * 3. Neither the name of Apple 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. * @@ -28,12 +28,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef InspectorDatabaseResource_h -#define InspectorDatabaseResource_h +#pragma once -#if ENABLE(SQL_DATABASE) && ENABLE(INSPECTOR) -#include "InspectorWebFrontendDispatchers.h" -#include <wtf/PassRefPtr.h> +#include <inspector/InspectorFrontendDispatchers.h> #include <wtf/RefCounted.h> #include <wtf/RefPtr.h> #include <wtf/text/WTFString.h> @@ -44,15 +41,15 @@ class Database; class InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource> { public: - static PassRefPtr<InspectorDatabaseResource> create(PassRefPtr<Database> database, const String& domain, const String& name, const String& version); + static Ref<InspectorDatabaseResource> create(RefPtr<Database>&&, const String& domain, const String& name, const String& version); - void bind(Inspector::InspectorDatabaseFrontendDispatcher*); + void bind(Inspector::DatabaseFrontendDispatcher*); Database* database() { return m_database.get(); } - void setDatabase(PassRefPtr<Database> database) { m_database = database; } + void setDatabase(RefPtr<Database>&& database) { m_database = WTFMove(database); } String id() const { return m_id; } private: - InspectorDatabaseResource(PassRefPtr<Database>, const String& domain, const String& name, const String& version); + InspectorDatabaseResource(RefPtr<Database>&&, const String& domain, const String& name, const String& version); RefPtr<Database> m_database; String m_id; @@ -62,7 +59,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SQL_DATABASE) - -#endif // InspectorDatabaseResource_h |