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

Side by Side Diff: Source/modules/webdatabase/DatabaseThread.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 20 matching lines...) Expand all
31 31
32 #include "modules/webdatabase/Database.h" 32 #include "modules/webdatabase/Database.h"
33 #include "modules/webdatabase/DatabaseTask.h" 33 #include "modules/webdatabase/DatabaseTask.h"
34 #include "modules/webdatabase/SQLTransactionClient.h" 34 #include "modules/webdatabase/SQLTransactionClient.h"
35 #include "modules/webdatabase/SQLTransactionCoordinator.h" 35 #include "modules/webdatabase/SQLTransactionCoordinator.h"
36 #include "platform/Logging.h" 36 #include "platform/Logging.h"
37 #include "platform/heap/glue/MessageLoopInterruptor.h" 37 #include "platform/heap/glue/MessageLoopInterruptor.h"
38 #include "platform/heap/glue/PendingGCRunner.h" 38 #include "platform/heap/glue/PendingGCRunner.h"
39 #include "public/platform/Platform.h" 39 #include "public/platform/Platform.h"
40 40
41 namespace WebCore { 41 namespace blink {
42 42
43 DatabaseThread::DatabaseThread() 43 DatabaseThread::DatabaseThread()
44 : m_transactionClient(adoptPtr(new SQLTransactionClient())) 44 : m_transactionClient(adoptPtr(new SQLTransactionClient()))
45 , m_transactionCoordinator(adoptPtrWillBeNoop(new SQLTransactionCoordinator( ))) 45 , m_transactionCoordinator(adoptPtrWillBeNoop(new SQLTransactionCoordinator( )))
46 , m_cleanupSync(0) 46 , m_cleanupSync(0)
47 , m_terminationRequested(false) 47 , m_terminationRequested(false)
48 { 48 {
49 } 49 }
50 50
51 DatabaseThread::~DatabaseThread() 51 DatabaseThread::~DatabaseThread()
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 164 }
165 165
166 void DatabaseThread::scheduleTask(PassOwnPtr<DatabaseTask> task) 166 void DatabaseThread::scheduleTask(PassOwnPtr<DatabaseTask> task)
167 { 167 {
168 ASSERT(m_thread); 168 ASSERT(m_thread);
169 ASSERT(!task->hasSynchronizer() || task->hasCheckedForTermination()); 169 ASSERT(!task->hasSynchronizer() || task->hasCheckedForTermination());
170 // WebThread takes ownership of the task. 170 // WebThread takes ownership of the task.
171 m_thread->postTask(task.leakPtr()); 171 m_thread->postTask(task.leakPtr());
172 } 172 }
173 173
174 } // namespace WebCore 174 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseThread.h ('k') | Source/modules/webdatabase/DatabaseTracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698