| 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_WEBIDBFACTORY_IMPL_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ |
| 6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "third_party/WebKit/public/platform/WebVector.h" | 9 #include "third_party/WebKit/public/platform/WebVector.h" |
| 10 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
" | 10 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
" |
| 11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal
lbacks.h" | 11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal
lbacks.h" |
| 12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" | 12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 class WebSecurityOrigin; |
| 15 class WebString; | 16 class WebString; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 class ThreadSafeSender; | 20 class ThreadSafeSender; |
| 20 | 21 |
| 21 class WebIDBFactoryImpl : public blink::WebIDBFactory { | 22 class WebIDBFactoryImpl : public blink::WebIDBFactory { |
| 22 public: | 23 public: |
| 23 explicit WebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender); | 24 explicit WebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender); |
| 24 ~WebIDBFactoryImpl() override; | 25 ~WebIDBFactoryImpl() override; |
| 25 | 26 |
| 26 // See WebIDBFactory.h for documentation on these functions. | 27 // See WebIDBFactory.h for documentation on these functions. |
| 27 void getDatabaseNames(blink::WebIDBCallbacks* callbacks, | 28 void getDatabaseNames(blink::WebIDBCallbacks* callbacks, |
| 28 const blink::WebString& database_identifier) override; | 29 const blink::WebSecurityOrigin& origin) override; |
| 29 void open(const blink::WebString& name, | 30 void open(const blink::WebString& name, |
| 30 long long version, | 31 long long version, |
| 31 long long transaction_id, | 32 long long transaction_id, |
| 32 blink::WebIDBCallbacks* callbacks, | 33 blink::WebIDBCallbacks* callbacks, |
| 33 blink::WebIDBDatabaseCallbacks* databaseCallbacks, | 34 blink::WebIDBDatabaseCallbacks* databaseCallbacks, |
| 34 const blink::WebString& database_identifier) override; | 35 const blink::WebSecurityOrigin& origin) override; |
| 35 void deleteDatabase(const blink::WebString& name, | 36 void deleteDatabase(const blink::WebString& name, |
| 36 blink::WebIDBCallbacks* callbacks, | 37 blink::WebIDBCallbacks* callbacks, |
| 37 const blink::WebString& database_identifier) override; | 38 const blink::WebSecurityOrigin& origin) override; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 41 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace content | 44 } // namespace content |
| 44 | 45 |
| 45 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ | 46 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ |
| OLD | NEW |