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

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

Issue 2007983006: Rename OwnPtr::clear() to reset() in modules/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 /* 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 void IDBCursor::postSuccessHandlerCallback() 289 void IDBCursor::postSuccessHandlerCallback()
290 { 290 {
291 if (m_backend) 291 if (m_backend)
292 m_backend->postSuccessHandlerCallback(); 292 m_backend->postSuccessHandlerCallback();
293 } 293 }
294 294
295 void IDBCursor::close() 295 void IDBCursor::close()
296 { 296 {
297 m_value.clear(); 297 m_value.clear();
298 m_request.clear(); 298 m_request.clear();
299 m_backend.clear(); 299 m_backend.reset();
300 } 300 }
301 301
302 ScriptValue IDBCursor::key(ScriptState* scriptState) 302 ScriptValue IDBCursor::key(ScriptState* scriptState)
303 { 303 {
304 m_keyDirty = false; 304 m_keyDirty = false;
305 return ScriptValue::from(scriptState, m_key); 305 return ScriptValue::from(scriptState, m_key);
306 } 306 }
307 307
308 ScriptValue IDBCursor::primaryKey(ScriptState* scriptState) 308 ScriptValue IDBCursor::primaryKey(ScriptState* scriptState)
309 { 309 {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 case WebIDBCursorDirectionPrevNoDuplicate: 400 case WebIDBCursorDirectionPrevNoDuplicate:
401 return IndexedDBNames::prevunique; 401 return IndexedDBNames::prevunique;
402 402
403 default: 403 default:
404 ASSERT_NOT_REACHED(); 404 ASSERT_NOT_REACHED();
405 return IndexedDBNames::next; 405 return IndexedDBNames::next;
406 } 406 }
407 } 407 }
408 408
409 } // namespace blink 409 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBCursor.h ('k') | third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698