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

Unified Diff: content/child/indexed_db/proxy_webidbcursor_impl.h

Issue 17955002: Fix IndexedDB after r208777. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittests Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/child/indexed_db/proxy_webidbcursor_impl.h
===================================================================
--- content/child/indexed_db/proxy_webidbcursor_impl.h (revision 208777)
+++ content/child/indexed_db/proxy_webidbcursor_impl.h (working copy)
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "content/common/indexed_db/indexed_db_key.h"
#include "third_party/WebKit/public/platform/WebData.h"
@@ -19,11 +20,13 @@
#include "third_party/WebKit/public/platform/WebIDBKey.h"
namespace content {
+class ThreadSafeSender;
class CONTENT_EXPORT RendererWebIDBCursorImpl
: NON_EXPORTED_BASE(public WebKit::WebIDBCursor) {
public:
- explicit RendererWebIDBCursorImpl(int32 ipc_cursor_id);
+ RendererWebIDBCursorImpl(int32 ipc_cursor_id,
+ ThreadSafeSender* thread_safe_sender);
virtual ~RendererWebIDBCursorImpl();
virtual void advance(unsigned long count, WebKit::WebIDBCallbacks* callback);
@@ -60,6 +63,8 @@
// Number of items to request in next prefetch.
int prefetch_amount_;
+ scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+
enum { kInvalidCursorId = -1 };
enum { kPrefetchContinueThreshold = 2 };
enum { kMinPrefetchAmount = 5 };
« no previous file with comments | « content/child/indexed_db/indexed_db_message_filter.cc ('k') | content/child/indexed_db/proxy_webidbcursor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698