1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_
6 #define CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
10 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h"
11 #include "third_party/WebKit/public/platform/WebIDBFactory.h"
12 #include "third_party/WebKit/public/platform/WebVector.h"
19 class ThreadSafeSender;
21 class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory {
23 explicit RendererWebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender);
24 virtual ~RendererWebIDBFactoryImpl();
26 // See WebIDBFactory.h for documentation on these functions.
27 virtual void getDatabaseNames(
28 WebKit::WebIDBCallbacks* callbacks,
29 const WebKit::WebString& database_identifier);
31 const WebKit::WebString& name,
33 long long transaction_id,
34 WebKit::WebIDBCallbacks* callbacks,
35 WebKit::WebIDBDatabaseCallbacks* databaseCallbacks,
36 const WebKit::WebString& database_identifier);
37 virtual void deleteDatabase(
38 const WebKit::WebString& name,
39 WebKit::WebIDBCallbacks* callbacks,
40 const WebKit::WebString& database_identifier);
43 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
46 } // namespace content
48 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_