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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 , m_scriptState(scriptState) 65 , m_scriptState(scriptState)
66 , m_source(source) 66 , m_source(source)
67 , m_hasPendingActivity(true) 67 , m_hasPendingActivity(true)
68 , m_cursorType(IndexedDB::CursorKeyAndValue) 68 , m_cursorType(IndexedDB::CursorKeyAndValue)
69 , m_cursorDirection(WebIDBCursorDirectionNext) 69 , m_cursorDirection(WebIDBCursorDirectionNext)
70 , m_pendingCursor(nullptr) 70 , m_pendingCursor(nullptr)
71 , m_didFireUpgradeNeededEvent(false) 71 , m_didFireUpgradeNeededEvent(false)
72 , m_preventPropagation(false) 72 , m_preventPropagation(false)
73 , m_resultDirty(true) 73 , m_resultDirty(true)
74 { 74 {
75 ScriptWrappable::init(this);
76 } 75 }
77 76
78 IDBRequest::~IDBRequest() 77 IDBRequest::~IDBRequest()
79 { 78 {
80 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !executionConte xt()); 79 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !executionConte xt());
81 handleBlobAcks(); 80 handleBlobAcks();
82 } 81 }
83 82
84 void IDBRequest::trace(Visitor* visitor) 83 void IDBRequest::trace(Visitor* visitor)
85 { 84 {
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 536
538 void IDBRequest::dequeueEvent(Event* event) 537 void IDBRequest::dequeueEvent(Event* event)
539 { 538 {
540 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { 539 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) {
541 if (m_enqueuedEvents[i].get() == event) 540 if (m_enqueuedEvents[i].get() == event)
542 m_enqueuedEvents.remove(i); 541 m_enqueuedEvents.remove(i);
543 } 542 }
544 } 543 }
545 544
546 } // namespace blink 545 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.cpp ('k') | Source/modules/indexeddb/IDBTransaction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698