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

Side by Side Diff: Source/modules/webdatabase/SQLStatementSync.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 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 22 matching lines...) Expand all
33 #include "bindings/core/v8/ExceptionState.h" 33 #include "bindings/core/v8/ExceptionState.h"
34 #include "core/dom/ExceptionCode.h" 34 #include "core/dom/ExceptionCode.h"
35 #include "modules/webdatabase/sqlite/SQLiteDatabase.h" 35 #include "modules/webdatabase/sqlite/SQLiteDatabase.h"
36 #include "modules/webdatabase/sqlite/SQLiteStatement.h" 36 #include "modules/webdatabase/sqlite/SQLiteStatement.h"
37 #include "modules/webdatabase/DatabaseSync.h" 37 #include "modules/webdatabase/DatabaseSync.h"
38 #include "modules/webdatabase/SQLError.h" 38 #include "modules/webdatabase/SQLError.h"
39 #include "modules/webdatabase/SQLResultSet.h" 39 #include "modules/webdatabase/SQLResultSet.h"
40 #include "wtf/PassRefPtr.h" 40 #include "wtf/PassRefPtr.h"
41 #include "wtf/RefPtr.h" 41 #include "wtf/RefPtr.h"
42 42
43 namespace WebCore { 43 namespace blink {
44 44
45 SQLStatementSync::SQLStatementSync(const String& statement, const Vector<SQLValu e>& arguments, int permissions) 45 SQLStatementSync::SQLStatementSync(const String& statement, const Vector<SQLValu e>& arguments, int permissions)
46 : m_statement(statement) 46 : m_statement(statement)
47 , m_arguments(arguments) 47 , m_arguments(arguments)
48 , m_permissions(permissions) 48 , m_permissions(permissions)
49 { 49 {
50 ASSERT(!m_statement.isEmpty()); 50 ASSERT(!m_statement.isEmpty());
51 } 51 }
52 52
53 PassRefPtrWillBeRawPtr<SQLResultSet> SQLStatementSync::execute(DatabaseSync* db, ExceptionState& exceptionState) 53 PassRefPtrWillBeRawPtr<SQLResultSet> SQLStatementSync::execute(DatabaseSync* db, ExceptionState& exceptionState)
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } else { 130 } else {
131 exceptionState.throwDOMException(SQLDatabaseError, "Could not execute st atement."); 131 exceptionState.throwDOMException(SQLDatabaseError, "Could not execute st atement.");
132 db->setLastErrorMessage("could not execute statement", result, database- >lastErrorMsg()); 132 db->setLastErrorMessage("could not execute statement", result, database- >lastErrorMsg());
133 return nullptr; 133 return nullptr;
134 } 134 }
135 135
136 resultSet->setRowsAffected(database->lastChanges()); 136 resultSet->setRowsAffected(database->lastChanges());
137 return resultSet.release(); 137 return resultSet.release();
138 } 138 }
139 139
140 } // namespace WebCore 140 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLStatementSync.h ('k') | Source/modules/webdatabase/SQLTransaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698