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

Unified Diff: content/renderer/indexed_db/renderer_webidbindex_impl.cc

Issue 9368053: Move indexed db files from content/renderer to content/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneccesary include Created 8 years, 10 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
Index: content/renderer/indexed_db/renderer_webidbindex_impl.cc
diff --git a/content/renderer/indexed_db/renderer_webidbindex_impl.cc b/content/renderer/indexed_db/renderer_webidbindex_impl.cc
deleted file mode 100644
index c7446e475290523b95ab1ab95e04cc3e68fa4835..0000000000000000000000000000000000000000
--- a/content/renderer/indexed_db/renderer_webidbindex_impl.cc
+++ /dev/null
@@ -1,122 +0,0 @@
-// Copyright (c) 2012 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 "content/renderer/indexed_db/renderer_webidbindex_impl.h"
-
-#include "content/common/indexed_db/indexed_db_messages.h"
-#include "content/renderer/indexed_db/indexed_db_dispatcher.h"
-#include "content/renderer/indexed_db/renderer_webidbtransaction_impl.h"
-#include "content/renderer/render_thread_impl.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
-
-using WebKit::WebExceptionCode;
-using WebKit::WebDOMStringList;
-using WebKit::WebString;
-using WebKit::WebVector;
-
-RendererWebIDBIndexImpl::RendererWebIDBIndexImpl(int32 idb_index_id)
- : idb_index_id_(idb_index_id) {
-}
-
-RendererWebIDBIndexImpl::~RendererWebIDBIndexImpl() {
- // 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.
- ChildThread::current()->Send(new IndexedDBHostMsg_IndexDestroyed(
- idb_index_id_));
-}
-
-WebString RendererWebIDBIndexImpl::name() const {
- string16 result;
- ChildThread::current()->Send(
- new IndexedDBHostMsg_IndexName(idb_index_id_, &result));
- return result;
-}
-
-WebString RendererWebIDBIndexImpl::storeName() const {
- string16 result;
- ChildThread::current()->Send(
- new IndexedDBHostMsg_IndexStoreName(idb_index_id_, &result));
- return result;
-}
-
-WebString RendererWebIDBIndexImpl::keyPath() const {
- NullableString16 result;
- ChildThread::current()->Send(
- new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result));
- return result;
-}
-
-bool RendererWebIDBIndexImpl::unique() const {
- bool result;
- ChildThread::current()->Send(
- new IndexedDBHostMsg_IndexUnique(idb_index_id_, &result));
- return result;
-}
-
-bool RendererWebIDBIndexImpl::multiEntry() const {
- bool result;
- ChildThread::current()->Send(
- new IndexedDBHostMsg_IndexMultiEntry(idb_index_id_, &result));
- return result;
-}
-
-void RendererWebIDBIndexImpl::openObjectCursor(
- const WebKit::WebIDBKeyRange& range,
- unsigned short direction,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
- dispatcher->RequestIDBIndexOpenObjectCursor(
- range, direction, callbacks, idb_index_id_, transaction, &ec);
-}
-
-void RendererWebIDBIndexImpl::openKeyCursor(
- const WebKit::WebIDBKeyRange& range,
- unsigned short direction,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
- dispatcher->RequestIDBIndexOpenKeyCursor(
- range, direction, callbacks, idb_index_id_, transaction, &ec);
-}
-
-void RendererWebIDBIndexImpl::count(
- const WebKit::WebIDBKeyRange& range,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
- dispatcher->RequestIDBIndexCount(
- range, callbacks, idb_index_id_, transaction, &ec);
-}
-
-void RendererWebIDBIndexImpl::getObject(
- const WebKit::WebIDBKey& key,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
- dispatcher->RequestIDBIndexGetObject(
- IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
-}
-
-void RendererWebIDBIndexImpl::getKey(
- const WebKit::WebIDBKey& key,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
- dispatcher->RequestIDBIndexGetKey(
- IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
-}
« no previous file with comments | « content/renderer/indexed_db/renderer_webidbindex_impl.h ('k') | content/renderer/indexed_db/renderer_webidbobjectstore_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698