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

Side by Side Diff: Source/modules/indexeddb/IDBObjectStore.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
« no previous file with comments | « Source/modules/indexeddb/IDBKeyRange.cpp ('k') | Source/modules/indexeddb/IDBOpenDBRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 using blink::WebVector; 54 using blink::WebVector;
55 55
56 namespace blink { 56 namespace blink {
57 57
58 IDBObjectStore::IDBObjectStore(const IDBObjectStoreMetadata& metadata, IDBTransa ction* transaction) 58 IDBObjectStore::IDBObjectStore(const IDBObjectStoreMetadata& metadata, IDBTransa ction* transaction)
59 : m_metadata(metadata) 59 : m_metadata(metadata)
60 , m_transaction(transaction) 60 , m_transaction(transaction)
61 , m_deleted(false) 61 , m_deleted(false)
62 { 62 {
63 ASSERT(m_transaction); 63 ASSERT(m_transaction);
64 ScriptWrappable::init(this);
65 } 64 }
66 65
67 void IDBObjectStore::trace(Visitor* visitor) 66 void IDBObjectStore::trace(Visitor* visitor)
68 { 67 {
69 visitor->trace(m_transaction); 68 visitor->trace(m_transaction);
70 visitor->trace(m_indexMap); 69 visitor->trace(m_indexMap);
71 } 70 }
72 71
73 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const 72 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const
74 { 73 {
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } 682 }
684 return IDBIndexMetadata::InvalidId; 683 return IDBIndexMetadata::InvalidId;
685 } 684 }
686 685
687 WebIDBDatabase* IDBObjectStore::backendDB() const 686 WebIDBDatabase* IDBObjectStore::backendDB() const
688 { 687 {
689 return m_transaction->backendDB(); 688 return m_transaction->backendDB();
690 } 689 }
691 690
692 } // namespace blink 691 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBKeyRange.cpp ('k') | Source/modules/indexeddb/IDBOpenDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698