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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 , m_requestState(context) 71 , m_requestState(context)
72 { 72 {
73 ScriptWrappable::init(this); 73 ScriptWrappable::init(this);
74 } 74 }
75 75
76 IDBRequest::~IDBRequest() 76 IDBRequest::~IDBRequest()
77 { 77 {
78 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !executionConte xt()); 78 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !executionConte xt());
79 } 79 }
80 80
81 PassRefPtr<IDBAny> IDBRequest::result(ExceptionState& es) const 81 PassRefPtr<IDBAny> IDBRequest::result(ExceptionState& exceptionState) const
82 { 82 {
83 if (m_readyState != DONE) { 83 if (m_readyState != DONE) {
84 es.throwDOMException(InvalidStateError, IDBDatabase::requestNotFinishedE rrorMessage); 84 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request NotFinishedErrorMessage);
85 return 0; 85 return 0;
86 } 86 }
87 return m_result; 87 return m_result;
88 } 88 }
89 89
90 PassRefPtr<DOMError> IDBRequest::error(ExceptionState& es) const 90 PassRefPtr<DOMError> IDBRequest::error(ExceptionState& exceptionState) const
91 { 91 {
92 if (m_readyState != DONE) { 92 if (m_readyState != DONE) {
93 es.throwDOMException(InvalidStateError, IDBDatabase::requestNotFinishedE rrorMessage); 93 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request NotFinishedErrorMessage);
94 return 0; 94 return 0;
95 } 95 }
96 return m_error; 96 return m_error;
97 } 97 }
98 98
99 PassRefPtr<IDBAny> IDBRequest::source() const 99 PassRefPtr<IDBAny> IDBRequest::source() const
100 { 100 {
101 return m_source; 101 return m_source;
102 } 102 }
103 103
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 ASSERT_WITH_MESSAGE(m_readyState == PENDING || m_didFireUpgradeNeededEvent, "When queueing event %s, m_readyState was %d", event->type().string().utf8().dat a(), m_readyState); 517 ASSERT_WITH_MESSAGE(m_readyState == PENDING || m_didFireUpgradeNeededEvent, "When queueing event %s, m_readyState was %d", event->type().string().utf8().dat a(), m_readyState);
518 518
519 EventQueue* eventQueue = executionContext()->eventQueue(); 519 EventQueue* eventQueue = executionContext()->eventQueue();
520 event->setTarget(this); 520 event->setTarget(this);
521 521
522 if (eventQueue->enqueueEvent(event.get())) 522 if (eventQueue->enqueueEvent(event.get()))
523 m_enqueuedEvents.append(event); 523 m_enqueuedEvents.append(event);
524 } 524 }
525 525
526 } // namespace WebCore 526 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | Source/modules/indexeddb/IDBTransaction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698