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

Side by Side Diff: content/common/indexed_db/proxy_webidbcursor_impl.h

Issue 9368053: Move indexed db files from content/renderer to content/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBCURSOR_IMPL_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
6 #define CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBCURSOR_IMPL_H_ 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/common/indexed_db/indexed_db_key.h" 11 #include "content/common/indexed_db/indexed_db_key.h"
12 #include "content/public/common/serialized_script_value.h" 12 #include "content/public/common/serialized_script_value.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
17 17
18 class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor { 18 class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor {
jsbell 2012/02/10 18:57:29 Is the plan to rename these from RendererWebIDB* t
dgrogan 2012/02/10 19:57:20 Yes.
19 public: 19 public:
20 RendererWebIDBCursorImpl(int32 idb_cursor_id); 20 RendererWebIDBCursorImpl(int32 idb_cursor_id);
21 virtual ~RendererWebIDBCursorImpl(); 21 virtual ~RendererWebIDBCursorImpl();
22 22
23 virtual unsigned short direction() const; 23 virtual unsigned short direction() const;
24 virtual WebKit::WebIDBKey key() const; 24 virtual WebKit::WebIDBKey key() const;
25 virtual WebKit::WebIDBKey primaryKey() const; 25 virtual WebKit::WebIDBKey primaryKey() const;
26 virtual WebKit::WebSerializedScriptValue value() const; 26 virtual WebKit::WebSerializedScriptValue value() const;
27 virtual void update(const WebKit::WebSerializedScriptValue& value, 27 virtual void update(const WebKit::WebSerializedScriptValue& value,
28 WebKit::WebIDBCallbacks* callback, 28 WebKit::WebIDBCallbacks* callback,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 int pending_onsuccess_callbacks_; 65 int pending_onsuccess_callbacks_;
66 66
67 // Number of items to request in next prefetch. 67 // Number of items to request in next prefetch.
68 int prefetch_amount_; 68 int prefetch_amount_;
69 69
70 enum { kPrefetchContinueThreshold = 2 }; 70 enum { kPrefetchContinueThreshold = 2 };
71 enum { kMinPrefetchAmount = 5 }; 71 enum { kMinPrefetchAmount = 5 };
72 enum { kMaxPrefetchAmount = 100 }; 72 enum { kMaxPrefetchAmount = 100 };
73 }; 73 };
74 74
75 #endif // CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBCURSOR_IMPL_H_ 75 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698