summaryrefslogtreecommitdiffstats
path: root/webkit/glue/idb_bindings.cc
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 21:27:17 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 21:27:17 +0000
commit6450c6e0b529029790ca3ae00aeae89f4340ff51 (patch)
treec2405188e7bb6aeb7fc014a6661a751db1f72086 /webkit/glue/idb_bindings.cc
parent5a90bd13b08d53364929beacafcfa8640ba167b1 (diff)
downloadchromium_src-6450c6e0b529029790ca3ae00aeae89f4340ff51.zip
chromium_src-6450c6e0b529029790ca3ae00aeae89f4340ff51.tar.gz
chromium_src-6450c6e0b529029790ca3ae00aeae89f4340ff51.tar.bz2
Fix up the IndexedDB plumbing layers to match the latest WebKit code.
Landing http://codereview.chromium.org/3550015/show TEST=none BUG=none Review URL: http://codereview.chromium.org/3575019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/idb_bindings.cc')
-rw-r--r--webkit/glue/idb_bindings.cc26
1 files changed, 1 insertions, 25 deletions
diff --git a/webkit/glue/idb_bindings.cc b/webkit/glue/idb_bindings.cc
index fd26130..4af085f 100644
--- a/webkit/glue/idb_bindings.cc
+++ b/webkit/glue/idb_bindings.cc
@@ -20,35 +20,11 @@ using WebKit::WebIDBKey;
using WebKit::WebIDBKeyPath;
using WebKit::WebSerializedScriptValue;
-namespace {
-
-class LocalContext {
- public:
- LocalContext()
- : context_(v8::Context::New()) {
- context_->Enter();
- }
-
- virtual ~LocalContext() {
- context_->Exit();
- context_.Dispose();
- }
-
- private:
- v8::Locker lock_;
- v8::HandleScope scope_;
- v8::Persistent<v8::Context> context_;
-
- DISALLOW_COPY_AND_ASSIGN(LocalContext);
-};
-
-} // namespace
-
bool IDBKeysFromValuesAndKeyPath(
const std::vector<WebSerializedScriptValue>& serialized_script_values,
const string16& idb_key_path,
std::vector<WebIDBKey>* values) {
- LocalContext env;
+ v8::Locker lock;
WebIDBKeyPath web_idb_key_path = WebIDBKeyPath::create(idb_key_path);
bool error = web_idb_key_path.parseError() != 0;
// TODO(bulach): what to do when we have a parse error? For now, setting