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

Side by Side Diff: content/browser/indexed_db/indexed_db_cursor.cc

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated review comments. Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/indexed_db/indexed_db_cursor.h" 5 #include "content/browser/indexed_db/indexed_db_cursor.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/browser/indexed_db/indexed_db_callbacks.h" 9 #include "content/browser/indexed_db/indexed_db_callbacks.h"
10 #include "content/browser/indexed_db/indexed_db_database_error.h" 10 #include "content/browser/indexed_db/indexed_db_database_error.h"
11 #include "content/browser/indexed_db/indexed_db_tracing.h" 11 #include "content/browser/indexed_db/indexed_db_tracing.h"
12 #include "content/browser/indexed_db/indexed_db_transaction.h" 12 #include "content/browser/indexed_db/indexed_db_transaction.h"
13 #include "content/browser/indexed_db/indexed_db_value.h" 13 #include "content/browser/indexed_db/indexed_db_value.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 IndexedDBCursor::IndexedDBCursor( 17 IndexedDBCursor::IndexedDBCursor(
18 scoped_ptr<IndexedDBBackingStore::Cursor> cursor, 18 scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
19 indexed_db::CursorType cursor_type, 19 indexed_db::CursorType cursor_type,
20 IndexedDBDatabase::TaskType task_type, 20 blink::WebIDBTaskType task_type,
21 IndexedDBTransaction* transaction) 21 IndexedDBTransaction* transaction)
22 : task_type_(task_type), 22 : task_type_(task_type),
23 cursor_type_(cursor_type), 23 cursor_type_(cursor_type),
24 transaction_(transaction), 24 transaction_(transaction),
25 cursor_(cursor.Pass()), 25 cursor_(cursor.Pass()),
26 closed_(false) { 26 closed_(false) {
27 transaction_->RegisterOpenCursor(this); 27 transaction_->RegisterOpenCursor(this);
28 } 28 }
29 29
30 IndexedDBCursor::~IndexedDBCursor() { 30 IndexedDBCursor::~IndexedDBCursor() {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 void IndexedDBCursor::Close() { 195 void IndexedDBCursor::Close() {
196 IDB_TRACE("IndexedDBCursor::Close"); 196 IDB_TRACE("IndexedDBCursor::Close");
197 closed_ = true; 197 closed_ = true;
198 cursor_.reset(); 198 cursor_.reset();
199 saved_cursor_.reset(); 199 saved_cursor_.reset();
200 } 200 }
201 201
202 } // namespace content 202 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698