| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ |
| 6 #define CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" |
| 8 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" | 9 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
| 9 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" | 10 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" |
| 10 #include "third_party/WebKit/public/platform/WebIDBFactory.h" | 11 #include "third_party/WebKit/public/platform/WebIDBFactory.h" |
| 11 #include "third_party/WebKit/public/platform/WebVector.h" | 12 #include "third_party/WebKit/public/platform/WebVector.h" |
| 12 | 13 |
| 13 namespace WebKit { | 14 namespace WebKit { |
| 14 class WebString; | 15 class WebString; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 19 class ThreadSafeSender; |
| 18 | 20 |
| 19 class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory { | 21 class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory { |
| 20 public: | 22 public: |
| 21 RendererWebIDBFactoryImpl(); | 23 explicit RendererWebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender); |
| 22 virtual ~RendererWebIDBFactoryImpl(); | 24 virtual ~RendererWebIDBFactoryImpl(); |
| 23 | 25 |
| 24 // See WebIDBFactory.h for documentation on these functions. | 26 // See WebIDBFactory.h for documentation on these functions. |
| 25 virtual void getDatabaseNames( | 27 virtual void getDatabaseNames( |
| 26 WebKit::WebIDBCallbacks* callbacks, | 28 WebKit::WebIDBCallbacks* callbacks, |
| 27 const WebKit::WebString& database_identifier, | 29 const WebKit::WebString& database_identifier, |
| 28 const WebKit::WebString& data_dir); | 30 const WebKit::WebString& data_dir); |
| 29 virtual void open( | 31 virtual void open( |
| 30 const WebKit::WebString& name, | 32 const WebKit::WebString& name, |
| 31 long long version, | 33 long long version, |
| 32 long long transaction_id, | 34 long long transaction_id, |
| 33 WebKit::WebIDBCallbacks* callbacks, | 35 WebKit::WebIDBCallbacks* callbacks, |
| 34 WebKit::WebIDBDatabaseCallbacks* databaseCallbacks, | 36 WebKit::WebIDBDatabaseCallbacks* databaseCallbacks, |
| 35 const WebKit::WebString& database_identifier, | 37 const WebKit::WebString& database_identifier, |
| 36 const WebKit::WebString& data_dir); | 38 const WebKit::WebString& data_dir); |
| 37 virtual void deleteDatabase( | 39 virtual void deleteDatabase( |
| 38 const WebKit::WebString& name, | 40 const WebKit::WebString& name, |
| 39 WebKit::WebIDBCallbacks* callbacks, | 41 WebKit::WebIDBCallbacks* callbacks, |
| 40 const WebKit::WebString& database_identifier, | 42 const WebKit::WebString& database_identifier, |
| 41 const WebKit::WebString& data_dir); | 43 const WebKit::WebString& data_dir); |
| 44 |
| 45 private: |
| 46 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 42 }; | 47 }; |
| 43 | 48 |
| 44 } // namespace content | 49 } // namespace content |
| 45 | 50 |
| 46 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ | 51 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ |
| OLD | NEW |