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

Unified Diff: chrome/renderer/renderer_webidbcursor_impl.cc

Issue 6713024: Move the renderer_web* files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/renderer_webidbcursor_impl.h ('k') | chrome/renderer/renderer_webidbdatabase_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webidbcursor_impl.cc
===================================================================
--- chrome/renderer/renderer_webidbcursor_impl.cc (revision 78640)
+++ chrome/renderer/renderer_webidbcursor_impl.cc (working copy)
@@ -1,87 +0,0 @@
-// 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.
-
-#include "chrome/renderer/renderer_webidbcursor_impl.h"
-
-#include "chrome/renderer/render_thread.h"
-#include "content/common/indexed_db_messages.h"
-#include "content/renderer/indexed_db_dispatcher.h"
-
-using WebKit::WebExceptionCode;
-using WebKit::WebIDBCallbacks;
-using WebKit::WebIDBKey;
-using WebKit::WebSerializedScriptValue;
-
-RendererWebIDBCursorImpl::RendererWebIDBCursorImpl(int32 idb_cursor_id)
- : idb_cursor_id_(idb_cursor_id) {
-}
-
-RendererWebIDBCursorImpl::~RendererWebIDBCursorImpl() {
- // It's not possible for there to be pending callbacks that address this
- // object since inside WebKit, they hold a reference to the object wich owns
- // this object. But, if that ever changed, then we'd need to invalidate
- // any such pointers.
- RenderThread::current()->Send(new IndexedDBHostMsg_CursorDestroyed(
- idb_cursor_id_));
-}
-
-unsigned short RendererWebIDBCursorImpl::direction() const {
- int direction;
- RenderThread::current()->Send(
- new IndexedDBHostMsg_CursorDirection(idb_cursor_id_, &direction));
- return direction;
-}
-
-WebIDBKey RendererWebIDBCursorImpl::key() const {
- IndexedDBKey key;
- RenderThread::current()->Send(
- new IndexedDBHostMsg_CursorKey(idb_cursor_id_, &key));
- return key;
-}
-
-WebIDBKey RendererWebIDBCursorImpl::primaryKey() const {
- IndexedDBKey primaryKey;
- RenderThread::current()->Send(
- new IndexedDBHostMsg_CursorPrimaryKey(idb_cursor_id_, &primaryKey));
- return primaryKey;
-}
-
-void RendererWebIDBCursorImpl::value(
- WebSerializedScriptValue& webScriptValue,
- WebIDBKey& webKey) const {
- SerializedScriptValue scriptValue;
- IndexedDBKey key;
- RenderThread::current()->Send(
- new IndexedDBHostMsg_CursorValue(idb_cursor_id_, &scriptValue,
- &key));
- // Only one or the other type should have been "returned" to us.
- DCHECK(scriptValue.is_null() != (key.type() == WebIDBKey::InvalidType));
- webScriptValue = scriptValue;
- webKey = key;
-}
-
-void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
- WebIDBCallbacks* callbacks,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThread::current()->indexed_db_dispatcher();
- dispatcher->RequestIDBCursorUpdate(SerializedScriptValue(value), callbacks,
- idb_cursor_id_, &ec);
-}
-
-void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
- WebIDBCallbacks* callbacks,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThread::current()->indexed_db_dispatcher();
- dispatcher->RequestIDBCursorContinue(IndexedDBKey(key), callbacks,
- idb_cursor_id_, &ec);
-}
-
-void RendererWebIDBCursorImpl::remove(WebIDBCallbacks* callbacks,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThread::current()->indexed_db_dispatcher();
- dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec);
-}
« no previous file with comments | « chrome/renderer/renderer_webidbcursor_impl.h ('k') | chrome/renderer/renderer_webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698