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

Side by Side Diff: Source/modules/webdatabase/DatabaseSync.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/webdatabase/Database.cpp ('k') | Source/modules/webdatabase/SQLError.h » ('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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 PassRefPtrWillBeRawPtr<DatabaseSync> DatabaseSync::create(ExecutionContext*, Pas sRefPtrWillBeRawPtr<DatabaseBackendBase> backend) 51 PassRefPtrWillBeRawPtr<DatabaseSync> DatabaseSync::create(ExecutionContext*, Pas sRefPtrWillBeRawPtr<DatabaseBackendBase> backend)
52 { 52 {
53 return static_cast<DatabaseSync*>(backend.get()); 53 return static_cast<DatabaseSync*>(backend.get());
54 } 54 }
55 55
56 DatabaseSync::DatabaseSync(DatabaseContext* databaseContext, 56 DatabaseSync::DatabaseSync(DatabaseContext* databaseContext,
57 const String& name, const String& expectedVersion, const String& displayName , unsigned long estimatedSize) 57 const String& name, const String& expectedVersion, const String& displayName , unsigned long estimatedSize)
58 : DatabaseBackendSync(databaseContext, name, expectedVersion, displayName, e stimatedSize) 58 : DatabaseBackendSync(databaseContext, name, expectedVersion, displayName, e stimatedSize)
59 , DatabaseBase(databaseContext->executionContext()) 59 , DatabaseBase(databaseContext->executionContext())
60 { 60 {
61 ScriptWrappable::init(this);
62 setFrontend(this); 61 setFrontend(this);
63 } 62 }
64 63
65 DatabaseSync::~DatabaseSync() 64 DatabaseSync::~DatabaseSync()
66 { 65 {
67 #if !ENABLE(OILPAN) 66 #if !ENABLE(OILPAN)
68 if (executionContext()) 67 if (executionContext())
69 ASSERT(executionContext()->isContextThread()); 68 ASSERT(executionContext()->isContextThread());
70 #endif 69 #endif
71 } 70 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 203 }
205 204
206 #if ENABLE(OILPAN) 205 #if ENABLE(OILPAN)
207 DatabaseSync::TransactionObserver::~TransactionObserver() 206 DatabaseSync::TransactionObserver::~TransactionObserver()
208 { 207 {
209 m_transaction.rollbackIfInProgress(); 208 m_transaction.rollbackIfInProgress();
210 } 209 }
211 #endif 210 #endif
212 211
213 } // namespace blink 212 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/Database.cpp ('k') | Source/modules/webdatabase/SQLError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698