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

Side by Side Diff: Source/modules/indexeddb/IDBCursor.cpp

Issue 1323323002: IndexedDB: Various C++11isms and cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: True, false, whatever Created 5 years, 3 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 { 54 {
55 return new IDBCursor(backend, direction, request, source, transaction); 55 return new IDBCursor(backend, direction, request, source, transaction);
56 } 56 }
57 57
58 IDBCursor::IDBCursor(PassOwnPtr<WebIDBCursor> backend, WebIDBCursorDirection dir ection, IDBRequest* request, IDBAny* source, IDBTransaction* transaction) 58 IDBCursor::IDBCursor(PassOwnPtr<WebIDBCursor> backend, WebIDBCursorDirection dir ection, IDBRequest* request, IDBAny* source, IDBTransaction* transaction)
59 : m_backend(backend) 59 : m_backend(backend)
60 , m_request(request) 60 , m_request(request)
61 , m_direction(direction) 61 , m_direction(direction)
62 , m_source(source) 62 , m_source(source)
63 , m_transaction(transaction) 63 , m_transaction(transaction)
64 , m_gotValue(false)
65 , m_keyDirty(true)
66 , m_primaryKeyDirty(true)
67 , m_valueDirty(true)
68 { 64 {
69 ASSERT(m_backend); 65 ASSERT(m_backend);
70 ASSERT(m_request); 66 ASSERT(m_request);
71 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() == IDBAny::IDBIndexType); 67 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() == IDBAny::IDBIndexType);
72 ASSERT(m_transaction); 68 ASSERT(m_transaction);
73 } 69 }
74 70
75 IDBCursor::~IDBCursor() 71 IDBCursor::~IDBCursor()
76 { 72 {
77 } 73 }
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 case WebIDBCursorDirectionPrevNoDuplicate: 401 case WebIDBCursorDirectionPrevNoDuplicate:
406 return IndexedDBNames::prevunique; 402 return IndexedDBNames::prevunique;
407 403
408 default: 404 default:
409 ASSERT_NOT_REACHED(); 405 ASSERT_NOT_REACHED();
410 return IndexedDBNames::next; 406 return IndexedDBNames::next;
411 } 407 }
412 } 408 }
413 409
414 } // namespace blink 410 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698