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

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

Issue 2572603002: ABANDONED CL: Rename readyState() to getReadyState(). (Closed)
Patch Set: Created 4 years 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return m_error; 117 return m_error;
118 } 118 }
119 119
120 ScriptValue IDBRequest::source(ScriptState* scriptState) const { 120 ScriptValue IDBRequest::source(ScriptState* scriptState) const {
121 if (!getExecutionContext()) 121 if (!getExecutionContext())
122 return ScriptValue(); 122 return ScriptValue();
123 123
124 return ScriptValue::from(scriptState, m_source); 124 return ScriptValue::from(scriptState, m_source);
125 } 125 }
126 126
127 const String& IDBRequest::readyState() const { 127 const String& IDBRequest::getReadyState() const {
128 DCHECK(m_readyState == PENDING || m_readyState == DONE); 128 DCHECK(m_readyState == PENDING || m_readyState == DONE);
129 129
130 if (m_readyState == PENDING) 130 if (m_readyState == PENDING)
131 return IndexedDBNames::pending; 131 return IndexedDBNames::pending;
132 132
133 return IndexedDBNames::done; 133 return IndexedDBNames::done;
134 } 134 }
135 135
136 std::unique_ptr<WebIDBCallbacks> IDBRequest::createWebCallbacks() { 136 std::unique_ptr<WebIDBCallbacks> IDBRequest::createWebCallbacks() {
137 DCHECK(!m_webCallbacks); 137 DCHECK(!m_webCallbacks);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 552
553 void IDBRequest::dequeueEvent(Event* event) { 553 void IDBRequest::dequeueEvent(Event* event) {
554 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { 554 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) {
555 if (m_enqueuedEvents[i].get() == event) 555 if (m_enqueuedEvents[i].get() == event)
556 m_enqueuedEvents.remove(i); 556 m_enqueuedEvents.remove(i);
557 } 557 }
558 } 558 }
559 559
560 } // namespace blink 560 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698