OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDERER_WEBIDBDATABASE_IMPL_H_ | 5 #ifndef CHROME_RENDERER_RENDERER_WEBIDBDATABASE_IMPL_H_ |
6 #define CHROME_RENDERER_RENDERER_WEBIDBDATABASE_IMPL_H_ | 6 #define CHROME_RENDERER_RENDERER_WEBIDBDATABASE_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabase.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabase.h" |
11 | 11 |
| 12 namespace WebKit { |
| 13 class WebFrame; |
| 14 class WebIDBCallbacks; |
| 15 class WebString; |
| 16 } |
| 17 |
12 class RendererWebIDBDatabaseImpl : public WebKit::WebIDBDatabase { | 18 class RendererWebIDBDatabaseImpl : public WebKit::WebIDBDatabase { |
13 public: | 19 public: |
14 explicit RendererWebIDBDatabaseImpl(int32 idb_database_id); | 20 explicit RendererWebIDBDatabaseImpl(int32 idb_database_id); |
15 virtual ~RendererWebIDBDatabaseImpl(); | 21 virtual ~RendererWebIDBDatabaseImpl(); |
16 | 22 |
17 // WebKit::WebIDBDatabase | 23 // WebKit::WebIDBDatabase |
18 virtual WebKit::WebString name(); | 24 virtual WebKit::WebString name(); |
19 virtual WebKit::WebString description(); | 25 virtual WebKit::WebString description(); |
20 virtual WebKit::WebString version(); | 26 virtual WebKit::WebString version(); |
21 virtual WebKit::WebDOMStringList objectStores(); | 27 virtual WebKit::WebDOMStringList objectStores(); |
| 28 virtual void createObjectStore( |
| 29 const WebKit::WebString& name, const WebKit::WebString& key_path, |
| 30 bool auto_increment, WebKit::WebIDBCallbacks* callbacks); |
22 | 31 |
23 private: | 32 private: |
24 int32 idb_database_id_; | 33 int32 idb_database_id_; |
25 }; | 34 }; |
26 | 35 |
27 #endif // CHROME_RENDERER_RENDERER_WEBIDBDATABASE_IMPL_H_ | 36 #endif // CHROME_RENDERER_RENDERER_WEBIDBDATABASE_IMPL_H_ |
OLD | NEW |