Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: chrome/renderer/renderer_webidbobjectstore_impl.cc

Issue 2740003: Implement IDBDatabase::createObjectStore. Also refactor IndexedDBCallbacks. (Closed)
Patch Set: Make sure indexed_db_context.cc is in the gypi file. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/renderer/renderer_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698