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

Side by Side Diff: Source/modules/indexeddb/IDBDatabase.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return idbDatabase; 75 return idbDatabase;
76 } 76 }
77 77
78 IDBDatabase::IDBDatabase(ExecutionContext* context, PassOwnPtr<WebIDBDatabase> b ackend, IDBDatabaseCallbacks* callbacks) 78 IDBDatabase::IDBDatabase(ExecutionContext* context, PassOwnPtr<WebIDBDatabase> b ackend, IDBDatabaseCallbacks* callbacks)
79 : ActiveDOMObject(context) 79 : ActiveDOMObject(context)
80 , m_backend(backend) 80 , m_backend(backend)
81 , m_closePending(false) 81 , m_closePending(false)
82 , m_contextStopped(false) 82 , m_contextStopped(false)
83 , m_databaseCallbacks(callbacks) 83 , m_databaseCallbacks(callbacks)
84 { 84 {
85 ScriptWrappable::init(this);
86 m_databaseCallbacks->connect(this); 85 m_databaseCallbacks->connect(this);
87 } 86 }
88 87
89 IDBDatabase::~IDBDatabase() 88 IDBDatabase::~IDBDatabase()
90 { 89 {
91 if (!m_closePending && m_backend) 90 if (!m_closePending && m_backend)
92 m_backend->close(); 91 m_backend->close();
93 } 92 }
94 93
95 void IDBDatabase::trace(Visitor* visitor) 94 void IDBDatabase::trace(Visitor* visitor)
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 { 470 {
472 return EventTargetNames::IDBDatabase; 471 return EventTargetNames::IDBDatabase;
473 } 472 }
474 473
475 ExecutionContext* IDBDatabase::executionContext() const 474 ExecutionContext* IDBDatabase::executionContext() const
476 { 475 {
477 return ActiveDOMObject::executionContext(); 476 return ActiveDOMObject::executionContext();
478 } 477 }
479 478
480 } // namespace blink 479 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBCursorWithValue.cpp ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698