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

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

Issue 73623004: Make DatabaseTask inherit from WebTask (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 { 66 {
67 } 67 }
68 68
69 DatabaseTask::~DatabaseTask() 69 DatabaseTask::~DatabaseTask()
70 { 70 {
71 #if !LOG_DISABLED 71 #if !LOG_DISABLED
72 ASSERT(m_complete || !m_synchronizer); 72 ASSERT(m_complete || !m_synchronizer);
73 #endif 73 #endif
74 } 74 }
75 75
76 void DatabaseTask::performTask() 76 void DatabaseTask::run()
77 { 77 {
78 // Database tasks are meant to be used only once, so make sure this one hasn 't been performed before. 78 // Database tasks are meant to be used only once, so make sure this one hasn 't been performed before.
79 #if !LOG_DISABLED 79 #if !LOG_DISABLED
80 ASSERT(!m_complete); 80 ASSERT(!m_complete);
81 #endif 81 #endif
82 82
83 LOG(StorageAPI, "Performing %s %p\n", debugTaskName(), this); 83 LOG(StorageAPI, "Performing %s %p\n", debugTaskName(), this);
84 84
85 m_database->resetAuthorizer(); 85 m_database->resetAuthorizer();
86 doPerformTask(); 86 doPerformTask();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 195
196 #if !LOG_DISABLED 196 #if !LOG_DISABLED
197 const char* DatabaseBackend::DatabaseTableNamesTask::debugTaskName() const 197 const char* DatabaseBackend::DatabaseTableNamesTask::debugTaskName() const
198 { 198 {
199 return "DatabaseTableNamesTask"; 199 return "DatabaseTableNamesTask";
200 } 200 }
201 #endif 201 #endif
202 202
203 } // namespace WebCore 203 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698