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

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

Issue 497033002: Make some ScriptValue references const in modules/indexeddb (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 /* 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void IDBCursor::trace(Visitor* visitor) 80 void IDBCursor::trace(Visitor* visitor)
81 { 81 {
82 visitor->trace(m_request); 82 visitor->trace(m_request);
83 visitor->trace(m_source); 83 visitor->trace(m_source);
84 visitor->trace(m_transaction); 84 visitor->trace(m_transaction);
85 visitor->trace(m_key); 85 visitor->trace(m_key);
86 visitor->trace(m_primaryKey); 86 visitor->trace(m_primaryKey);
87 } 87 }
88 88
89 IDBRequest* IDBCursor::update(ScriptState* scriptState, ScriptValue& value, Exce ptionState& exceptionState) 89 IDBRequest* IDBCursor::update(ScriptState* scriptState, const ScriptValue& value , ExceptionState& exceptionState)
90 { 90 {
91 IDB_TRACE("IDBCursor::update"); 91 IDB_TRACE("IDBCursor::update");
92 92
93 if (!m_gotValue) { 93 if (!m_gotValue) {
94 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::noValue ErrorMessage); 94 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::noValue ErrorMessage);
95 return 0; 95 return 0;
96 } 96 }
97 if (isKeyCursor()) { 97 if (isKeyCursor()) {
98 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::isKeyCu rsorErrorMessage); 98 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::isKeyCu rsorErrorMessage);
99 return 0; 99 return 0;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 case WebIDBCursorDirectionPrevNoDuplicate: 387 case WebIDBCursorDirectionPrevNoDuplicate:
388 return IndexedDBNames::prevunique; 388 return IndexedDBNames::prevunique;
389 389
390 default: 390 default:
391 ASSERT_NOT_REACHED(); 391 ASSERT_NOT_REACHED();
392 return IndexedDBNames::next; 392 return IndexedDBNames::next;
393 } 393 }
394 } 394 }
395 395
396 } // namespace blink 396 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698