OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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. | |
4 | |
5 #ifndef CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBDATABASE_IMPL_H_ | |
6 #define CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBDATABASE_IMPL_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" | |
11 | |
12 namespace WebKit { | |
13 class WebIDBCallbacks; | |
14 class WebIDBDatabaseCallbacks; | |
15 class WebString; | |
16 class WebIDBTransaction; | |
17 } | |
18 | |
19 class RendererWebIDBDatabaseImpl : public WebKit::WebIDBDatabase { | |
20 public: | |
21 explicit RendererWebIDBDatabaseImpl(int32 idb_database_id); | |
22 virtual ~RendererWebIDBDatabaseImpl(); | |
23 | |
24 // WebKit::WebIDBDatabase | |
25 virtual WebKit::WebString name() const; | |
26 virtual WebKit::WebString version() const; | |
27 virtual WebKit::WebDOMStringList objectStoreNames() const; | |
28 virtual WebKit::WebIDBObjectStore* createObjectStore( | |
29 const WebKit::WebString& name, | |
30 const WebKit::WebString& key_path, | |
31 bool auto_increment, | |
32 const WebKit::WebIDBTransaction& transaction, | |
33 WebKit::WebExceptionCode& ec); | |
34 virtual void deleteObjectStore( | |
35 const WebKit::WebString& name, | |
36 const WebKit::WebIDBTransaction& transaction, | |
37 WebKit::WebExceptionCode& ec); | |
38 virtual void setVersion( | |
39 const WebKit::WebString& version, WebKit::WebIDBCallbacks* callbacks, | |
40 WebKit::WebExceptionCode& ec); | |
41 virtual WebKit::WebIDBTransaction* transaction( | |
42 const WebKit::WebDOMStringList& names, | |
43 unsigned short mode, | |
44 WebKit::WebExceptionCode& ec); | |
45 virtual void close(); | |
46 virtual void open(WebKit::WebIDBDatabaseCallbacks*); | |
47 | |
48 private: | |
49 int32 idb_database_id_; | |
50 }; | |
51 | |
52 #endif // CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBDATABASE_IMPL_H_ | |
OLD | NEW |