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

Side by Side Diff: Source/modules/webdatabase/Database.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/webaudio/WaveShaperNode.cpp ('k') | Source/modules/webdatabase/DatabaseSync.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) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // instantiating the backend. 64 // instantiating the backend.
65 return static_cast<Database*>(backend.get()); 65 return static_cast<Database*>(backend.get());
66 } 66 }
67 67
68 Database::Database(DatabaseContext* databaseContext, 68 Database::Database(DatabaseContext* databaseContext,
69 const String& name, const String& expectedVersion, const String& displayName , unsigned long estimatedSize) 69 const String& name, const String& expectedVersion, const String& displayName , unsigned long estimatedSize)
70 : DatabaseBackend(databaseContext, name, expectedVersion, displayName, estim atedSize) 70 : DatabaseBackend(databaseContext, name, expectedVersion, displayName, estim atedSize)
71 , DatabaseBase(databaseContext->executionContext()) 71 , DatabaseBase(databaseContext->executionContext())
72 , m_databaseContext(DatabaseBackend::databaseContext()) 72 , m_databaseContext(DatabaseBackend::databaseContext())
73 { 73 {
74 ScriptWrappable::init(this);
75 m_databaseThreadSecurityOrigin = m_contextThreadSecurityOrigin->isolatedCopy (); 74 m_databaseThreadSecurityOrigin = m_contextThreadSecurityOrigin->isolatedCopy ();
76 setFrontend(this); 75 setFrontend(this);
77 76
78 ASSERT(m_databaseContext->databaseThread()); 77 ASSERT(m_databaseContext->databaseThread());
79 } 78 }
80 79
81 Database::~Database() 80 Database::~Database()
82 { 81 {
83 } 82 }
84 83
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 backend()->reportStartTransactionResult(errorSite, webSqlErrorCode, sqliteEr rorCode); 242 backend()->reportStartTransactionResult(errorSite, webSqlErrorCode, sqliteEr rorCode);
244 } 243 }
245 244
246 void Database::reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int sqliteErrorCode) 245 void Database::reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int sqliteErrorCode)
247 { 246 {
248 backend()->reportCommitTransactionResult(errorSite, webSqlErrorCode, sqliteE rrorCode); 247 backend()->reportCommitTransactionResult(errorSite, webSqlErrorCode, sqliteE rrorCode);
249 } 248 }
250 249
251 250
252 } // namespace blink 251 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webaudio/WaveShaperNode.cpp ('k') | Source/modules/webdatabase/DatabaseSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698