OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/renderer/renderer_webidbobjectstore_impl.h" |
| 6 |
| 7 #include "chrome/common/render_messages.h" |
| 8 #include "chrome/renderer/indexed_db_dispatcher.h" |
| 9 #include "chrome/renderer/render_thread.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| 11 |
| 12 using WebKit::WebFrame; |
| 13 using WebKit::WebIDBCallbacks; |
| 14 using WebKit::WebString; |
| 15 |
| 16 RendererWebIDBObjectStoreImpl::RendererWebIDBObjectStoreImpl( |
| 17 int32 idb_object_store_id) |
| 18 : idb_object_store_id_(idb_object_store_id) { |
| 19 } |
| 20 |
| 21 RendererWebIDBObjectStoreImpl::~RendererWebIDBObjectStoreImpl() { |
| 22 RenderThread::current()->Send( |
| 23 new ViewHostMsg_IDBObjectStoreDestroyed(idb_object_store_id_)); |
| 24 } |
| 25 |
| 26 WebString RendererWebIDBObjectStoreImpl::name() const { |
| 27 string16 result; |
| 28 RenderThread::current()->Send( |
| 29 new ViewHostMsg_IDBObjectStoreName(idb_object_store_id_, &result)); |
| 30 return result; |
| 31 } |
| 32 |
| 33 WebString RendererWebIDBObjectStoreImpl::keyPath() const { |
| 34 string16 result; |
| 35 RenderThread::current()->Send( |
| 36 new ViewHostMsg_IDBObjectStoreKeyPath(idb_object_store_id_, &result)); |
| 37 return result; |
| 38 } |
OLD | NEW |