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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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) 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 #include "content/common/indexed_db/proxy_webidbcursor_impl.h" 5 #include "content/common/indexed_db/proxy_webidbcursor_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/common/child_thread.h" 9 #include "content/common/child_thread.h"
10 #include "content/common/indexed_db/indexed_db_messages.h" 10 #include "content/common/indexed_db/indexed_db_messages.h"
11 #include "content/common/indexed_db/indexed_db_dispatcher.h" 11 #include "content/common/indexed_db/indexed_db_dispatcher.h"
12 12
13 using content::IndexedDBKey;
14 using content::SerializedScriptValue;
15 using WebKit::WebExceptionCode; 13 using WebKit::WebExceptionCode;
16 using WebKit::WebIDBCallbacks; 14 using WebKit::WebIDBCallbacks;
17 using WebKit::WebIDBKey; 15 using WebKit::WebIDBKey;
18 using WebKit::WebSerializedScriptValue; 16 using WebKit::WebSerializedScriptValue;
19 17
18 namespace content {
19
20 RendererWebIDBCursorImpl::RendererWebIDBCursorImpl(int32 idb_cursor_id) 20 RendererWebIDBCursorImpl::RendererWebIDBCursorImpl(int32 idb_cursor_id)
21 : idb_cursor_id_(idb_cursor_id), 21 : idb_cursor_id_(idb_cursor_id),
22 continue_count_(0), 22 continue_count_(0),
23 used_prefetches_(0), 23 used_prefetches_(0),
24 pending_onsuccess_callbacks_(0), 24 pending_onsuccess_callbacks_(0),
25 prefetch_amount_(kMinPrefetchAmount) { 25 prefetch_amount_(kMinPrefetchAmount) {
26 } 26 }
27 27
28 RendererWebIDBCursorImpl::~RendererWebIDBCursorImpl() { 28 RendererWebIDBCursorImpl::~RendererWebIDBCursorImpl() {
29 // It's not possible for there to be pending callbacks that address this 29 // It's not possible for there to be pending callbacks that address this
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 IndexedDBDispatcher::ThreadSpecificInstance(); 153 IndexedDBDispatcher::ThreadSpecificInstance();
154 dispatcher->RequestIDBCursorPrefetchReset(used_prefetches_, 154 dispatcher->RequestIDBCursorPrefetchReset(used_prefetches_,
155 prefetch_keys_.size(), 155 prefetch_keys_.size(),
156 idb_cursor_id_); 156 idb_cursor_id_);
157 prefetch_keys_.clear(); 157 prefetch_keys_.clear();
158 prefetch_primary_keys_.clear(); 158 prefetch_primary_keys_.clear();
159 prefetch_values_.clear(); 159 prefetch_values_.clear();
160 160
161 pending_onsuccess_callbacks_ = 0; 161 pending_onsuccess_callbacks_ = 0;
162 } 162 }
163
164 } // namespace content
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbcursor_impl.h ('k') | content/common/indexed_db/proxy_webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698