diff options
author | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 16:58:32 +0000 |
---|---|---|
committer | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 16:58:32 +0000 |
commit | d0c005ad4a569e41db0fc011d5b93aed76442228 (patch) | |
tree | c83ac95647e175019ab6ae33d518ddba1717b7c9 /chrome/renderer/renderer_webidbobjectstore_impl.h | |
parent | 0f53f5628ec01d743afade7de5e8ae350ca6880b (diff) | |
download | chromium_src-d0c005ad4a569e41db0fc011d5b93aed76442228.zip chromium_src-d0c005ad4a569e41db0fc011d5b93aed76442228.tar.gz chromium_src-d0c005ad4a569e41db0fc011d5b93aed76442228.tar.bz2 |
Implement IDBDatabase::createObjectStore. Also refactor IndexedDBCallbacks.
This CL is a clone of
http://codereview.chromium.org/2607001/show
which was reviewd and LGTM'ed by Jeremy Orlow.
Review URL: http://codereview.chromium.org/2740003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49267 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webidbobjectstore_impl.h')
-rw-r--r-- | chrome/renderer/renderer_webidbobjectstore_impl.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.h b/chrome/renderer/renderer_webidbobjectstore_impl.h new file mode 100644 index 0000000..ecada92 --- /dev/null +++ b/chrome/renderer/renderer_webidbobjectstore_impl.h @@ -0,0 +1,31 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ +#define CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ + +#include "base/basictypes.h" +#include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h" +#include "third_party/WebKit/WebKit/chromium/public/WebIDBObjectStore.h" + +namespace WebKit { +class WebFrame; +class WebIDBCallbacks; +class WebString; +} + +class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore { + public: + explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id); + virtual ~RendererWebIDBObjectStoreImpl(); + + // WebKit::WebIDBObjectStore + virtual WebKit::WebString name() const; + virtual WebKit::WebString keyPath() const; + + private: + int32 idb_object_store_id_; +}; + +#endif // CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ |