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

Side by Side Diff: Source/WebCore/Modules/webdatabase/SQLStatementSync.cpp

Issue 13774005: Remove the ENABLE_SQL_DATABASE compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: python Created 7 years, 8 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 12 matching lines...) Expand all
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "SQLStatementSync.h" 31 #include "SQLStatementSync.h"
32 32
33 #if ENABLE(SQL_DATABASE)
34
35 #include "DatabaseSync.h" 33 #include "DatabaseSync.h"
36 #include "SQLException.h" 34 #include "SQLException.h"
37 #include "SQLResultSet.h" 35 #include "SQLResultSet.h"
38 #include "SQLValue.h" 36 #include "SQLValue.h"
39 #include "SQLiteDatabase.h" 37 #include "SQLiteDatabase.h"
40 #include "SQLiteStatement.h" 38 #include "SQLiteStatement.h"
41 #include <wtf/PassRefPtr.h> 39 #include <wtf/PassRefPtr.h>
42 #include <wtf/RefPtr.h> 40 #include <wtf/RefPtr.h>
43 41
44 namespace WebCore { 42 namespace WebCore {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 ec = SQLException::DATABASE_ERR; 124 ec = SQLException::DATABASE_ERR;
127 db->setLastErrorMessage("could not execute statement", result, database- >lastErrorMsg()); 125 db->setLastErrorMessage("could not execute statement", result, database- >lastErrorMsg());
128 return 0; 126 return 0;
129 } 127 }
130 128
131 resultSet->setRowsAffected(database->lastChanges()); 129 resultSet->setRowsAffected(database->lastChanges());
132 return resultSet.release(); 130 return resultSet.release();
133 } 131 }
134 132
135 } // namespace WebCore 133 } // namespace WebCore
136
137 #endif // ENABLE(SQL_DATABASE)
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/webdatabase/SQLStatementSync.h ('k') | Source/WebCore/Modules/webdatabase/SQLTransaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698