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

Unified Diff: chrome/renderer/renderer_webidbtransaction_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_webidbtransaction_impl.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webidbtransaction_impl.cc
===================================================================
--- chrome/renderer/renderer_webidbtransaction_impl.cc (revision 78640)
+++ chrome/renderer/renderer_webidbtransaction_impl.cc (working copy)
@@ -1,74 +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_webidbtransaction_impl.h"
-
-#include "chrome/renderer/render_thread.h"
-#include "chrome/renderer/renderer_webidbobjectstore_impl.h"
-#include "content/common/indexed_db_messages.h"
-#include "content/renderer/indexed_db_dispatcher.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCallbacks.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
-
-using WebKit::WebIDBObjectStore;
-using WebKit::WebIDBTransactionCallbacks;
-using WebKit::WebString;
-
-RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl(
- int32 idb_transaction_id)
- : idb_transaction_id_(idb_transaction_id) {
-}
-
-RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() {
- // 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_TransactionDestroyed(
- idb_transaction_id_));
-}
-
-int RendererWebIDBTransactionImpl::mode() const
-{
- int mode;
- RenderThread::current()->Send(new IndexedDBHostMsg_TransactionMode(
- idb_transaction_id_, &mode));
- return mode;
-}
-
-WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
- const WebString& name,
- WebKit::WebExceptionCode& ec)
-{
- int object_store_id;
- RenderThread::current()->Send(
- new IndexedDBHostMsg_TransactionObjectStore(
- idb_transaction_id_, name, &object_store_id, &ec));
- if (!object_store_id)
- return NULL;
- return new RendererWebIDBObjectStoreImpl(object_store_id);
-}
-
-void RendererWebIDBTransactionImpl::abort()
-{
- RenderThread::current()->Send(new IndexedDBHostMsg_TransactionAbort(
- idb_transaction_id_));
-}
-
-void RendererWebIDBTransactionImpl::didCompleteTaskEvents()
-{
- RenderThread::current()->Send(
- new IndexedDBHostMsg_TransactionDidCompleteTaskEvents(
- idb_transaction_id_));
-}
-
-void RendererWebIDBTransactionImpl::setCallbacks(
- WebIDBTransactionCallbacks* callbacks)
-{
- IndexedDBDispatcher* dispatcher =
- RenderThread::current()->indexed_db_dispatcher();
- dispatcher->RegisterWebIDBTransactionCallbacks(callbacks,
- idb_transaction_id_);
-}
« no previous file with comments | « chrome/renderer/renderer_webidbtransaction_impl.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698