OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ |
6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" |
10 | 10 |
11 namespace WebKit { | 11 namespace WebKit { |
12 class WebIDBCallbacks; | 12 class WebIDBCallbacks; |
13 class WebIDBDatabaseCallbacks; | 13 class WebIDBDatabaseCallbacks; |
14 class WebString; | 14 class WebString; |
15 class WebIDBTransaction; | 15 class WebIDBTransaction; |
16 } | 16 } |
17 | 17 |
| 18 namespace content { |
| 19 |
18 class RendererWebIDBDatabaseImpl : public WebKit::WebIDBDatabase { | 20 class RendererWebIDBDatabaseImpl : public WebKit::WebIDBDatabase { |
19 public: | 21 public: |
20 explicit RendererWebIDBDatabaseImpl(int32 idb_database_id); | 22 explicit RendererWebIDBDatabaseImpl(int32 idb_database_id); |
21 virtual ~RendererWebIDBDatabaseImpl(); | 23 virtual ~RendererWebIDBDatabaseImpl(); |
22 | 24 |
23 // TODO(alecflett): Remove this when it is removed from webkit: | 25 // TODO(alecflett): Remove this when it is removed from webkit: |
24 // https://bugs.webkit.org/show_bug.cgi?id=98085 | 26 // https://bugs.webkit.org/show_bug.cgi?id=98085 |
25 static const long long AutogenerateObjectStoreId = -1; | 27 static const long long AutogenerateObjectStoreId = -1; |
26 | 28 |
27 // WebKit::WebIDBDatabase | 29 // WebKit::WebIDBDatabase |
(...skipping 15 matching lines...) Expand all Loading... |
43 virtual WebKit::WebIDBTransaction* transaction( | 45 virtual WebKit::WebIDBTransaction* transaction( |
44 const WebKit::WebDOMStringList& names, | 46 const WebKit::WebDOMStringList& names, |
45 unsigned short mode, | 47 unsigned short mode, |
46 WebKit::WebExceptionCode& ec); | 48 WebKit::WebExceptionCode& ec); |
47 virtual void close(); | 49 virtual void close(); |
48 | 50 |
49 private: | 51 private: |
50 int32 idb_database_id_; | 52 int32 idb_database_id_; |
51 }; | 53 }; |
52 | 54 |
| 55 } // namespace content |
| 56 |
53 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ | 57 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ |
OLD | NEW |