<div class="gmail_quote">On Wed, Dec 9, 2009 at 12:58 PM, Eric Uhrhane <span dir="ltr">&lt;<a href="mailto:ericu@chromium.org">ericu@chromium.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br> I&#39;ve pulled the database-related members out of Document and made a<br>
new class for them, DatabaseManager.  An instance of that is owned by<br>
each ScriptExecutionContext.  There are two flavors,<br>
DocumentDatabaseManager and WorkerDatabaseManager.  They&#39;re not very<br>
different, but in a few cases it was necessary to distinguish between<br>
them</blockquote><div><br></div><div>I don&#39;t see your code, just generic thought: If those classes are small, then perhaps ScriptExecutionContext could absorb a couple of methods to deal with that? Some of them could be virtual and implemented differently on Document and WorkerContext.</div>
<div><br></div><div>Dmitry </div></div>