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

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

Issue 10831138: Remove a ton of IPC from landing putWithIndexKeys (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Additional stuff found with lint Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_ 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "content/common/indexed_db/indexed_db_key.h" 12 #include "content/common/indexed_db/indexed_db_key.h"
12 #include "content/public/common/serialized_script_value.h" 13 #include "content/public/common/serialized_script_value.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
17 18
18 class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor { 19 class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor {
19 public: 20 public:
20 RendererWebIDBCursorImpl(int32 idb_cursor_id); 21 explicit RendererWebIDBCursorImpl(int32 idb_cursor_id);
21 virtual ~RendererWebIDBCursorImpl(); 22 virtual ~RendererWebIDBCursorImpl();
22 23
23 virtual WebKit::WebIDBKey key() const; 24 virtual WebKit::WebIDBKey key() const;
24 virtual WebKit::WebIDBKey primaryKey() const; 25 virtual WebKit::WebIDBKey primaryKey() const;
25 virtual WebKit::WebSerializedScriptValue value() const; 26 virtual WebKit::WebSerializedScriptValue value() const;
26 virtual void update(const WebKit::WebSerializedScriptValue& value,
27 WebKit::WebIDBCallbacks* callback,
28 WebKit::WebExceptionCode& ec);
29 virtual void advance(unsigned long count, 27 virtual void advance(unsigned long count,
30 WebKit::WebIDBCallbacks* callback, 28 WebKit::WebIDBCallbacks* callback,
31 WebKit::WebExceptionCode& ec); 29 WebKit::WebExceptionCode& ec);
32 virtual void continueFunction(const WebKit::WebIDBKey& key, 30 virtual void continueFunction(const WebKit::WebIDBKey& key,
33 WebKit::WebIDBCallbacks* callback, 31 WebKit::WebIDBCallbacks* callback,
34 WebKit::WebExceptionCode& ec); 32 WebKit::WebExceptionCode& ec);
35 virtual void deleteFunction(WebKit::WebIDBCallbacks* callback, 33 virtual void deleteFunction(WebKit::WebIDBCallbacks* callback,
36 WebKit::WebExceptionCode& ec); 34 WebKit::WebExceptionCode& ec);
37 virtual void postSuccessHandlerCallback(); 35 virtual void postSuccessHandlerCallback();
38 36
(...skipping 30 matching lines...) Expand all
69 67
70 // Number of items to request in next prefetch. 68 // Number of items to request in next prefetch.
71 int prefetch_amount_; 69 int prefetch_amount_;
72 70
73 enum { kPrefetchContinueThreshold = 2 }; 71 enum { kPrefetchContinueThreshold = 2 };
74 enum { kMinPrefetchAmount = 5 }; 72 enum { kMinPrefetchAmount = 5 };
75 enum { kMaxPrefetchAmount = 100 }; 73 enum { kMaxPrefetchAmount = 100 };
76 }; 74 };
77 75
78 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_ 76 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698