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

Side by Side Diff: Source/modules/webdatabase/SQLTransaction.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) 2007, 2008, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2013 Apple 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback, PassOwnPtrWillBeRawPtr <SQLTransactionErrorCallback> errorCallback, 59 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback, PassOwnPtrWillBeRawPtr <SQLTransactionErrorCallback> errorCallback,
60 bool readOnly) 60 bool readOnly)
61 : m_database(db) 61 : m_database(db)
62 , m_callbackWrapper(callback, db->executionContext()) 62 , m_callbackWrapper(callback, db->executionContext())
63 , m_successCallbackWrapper(successCallback, db->executionContext()) 63 , m_successCallbackWrapper(successCallback, db->executionContext())
64 , m_errorCallbackWrapper(errorCallback, db->executionContext()) 64 , m_errorCallbackWrapper(errorCallback, db->executionContext())
65 , m_executeSqlAllowed(false) 65 , m_executeSqlAllowed(false)
66 , m_readOnly(readOnly) 66 , m_readOnly(readOnly)
67 { 67 {
68 ASSERT(m_database); 68 ASSERT(m_database);
69 ScriptWrappable::init(this);
70 } 69 }
71 70
72 void SQLTransaction::trace(Visitor* visitor) 71 void SQLTransaction::trace(Visitor* visitor)
73 { 72 {
74 visitor->trace(m_database); 73 visitor->trace(m_database);
75 visitor->trace(m_backend); 74 visitor->trace(m_backend);
76 visitor->trace(m_callbackWrapper); 75 visitor->trace(m_callbackWrapper);
77 visitor->trace(m_successCallbackWrapper); 76 visitor->trace(m_successCallbackWrapper);
78 visitor->trace(m_errorCallbackWrapper); 77 visitor->trace(m_errorCallbackWrapper);
79 AbstractSQLTransaction::trace(visitor); 78 AbstractSQLTransaction::trace(visitor);
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 m_successCallbackWrapper.clear(); 314 m_successCallbackWrapper.clear();
316 m_errorCallbackWrapper.clear(); 315 m_errorCallbackWrapper.clear();
317 } 316 }
318 317
319 PassOwnPtrWillBeRawPtr<SQLTransactionErrorCallback> SQLTransaction::releaseError Callback() 318 PassOwnPtrWillBeRawPtr<SQLTransactionErrorCallback> SQLTransaction::releaseError Callback()
320 { 319 {
321 return m_errorCallbackWrapper.unwrap(); 320 return m_errorCallbackWrapper.unwrap();
322 } 321 }
323 322
324 } // namespace blink 323 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLResultSetRowList.h ('k') | Source/modules/webdatabase/SQLTransactionSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698