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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLStatementBackend.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 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 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 #ifndef SQLStatementBackend_h 28 #ifndef SQLStatementBackend_h
29 #define SQLStatementBackend_h 29 #define SQLStatementBackend_h
30 30
31 #include "modules/webdatabase/sqlite/SQLValue.h" 31 #include "modules/webdatabase/sqlite/SQLValue.h"
32 #include "platform/heap/Handle.h" 32 #include "platform/heap/Handle.h"
33 #include "wtf/Forward.h" 33 #include "wtf/Forward.h"
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 #include <memory>
37 36
38 namespace blink { 37 namespace blink {
39 38
40 class Database; 39 class Database;
41 class SQLErrorData; 40 class SQLErrorData;
42 class SQLResultSet; 41 class SQLResultSet;
43 class SQLStatement; 42 class SQLStatement;
44 43
45 class SQLStatementBackend final : public GarbageCollectedFinalized<SQLStatementB ackend> { 44 class SQLStatementBackend final : public GarbageCollectedFinalized<SQLStatementB ackend> {
46 public: 45 public:
(...skipping 18 matching lines...) Expand all
65 64
66 void setFailureDueToQuota(Database*); 65 void setFailureDueToQuota(Database*);
67 void clearFailureDueToQuota(); 66 void clearFailureDueToQuota();
68 67
69 Member<SQLStatement> m_frontend; 68 Member<SQLStatement> m_frontend;
70 String m_statement; 69 String m_statement;
71 Vector<SQLValue> m_arguments; 70 Vector<SQLValue> m_arguments;
72 bool m_hasCallback; 71 bool m_hasCallback;
73 bool m_hasErrorCallback; 72 bool m_hasErrorCallback;
74 73
75 std::unique_ptr<SQLErrorData> m_error; 74 OwnPtr<SQLErrorData> m_error;
76 Member<SQLResultSet> m_resultSet; 75 Member<SQLResultSet> m_resultSet;
77 76
78 int m_permissions; 77 int m_permissions;
79 }; 78 };
80 79
81 } // namespace blink 80 } // namespace blink
82 81
83 #endif // SQLStatementBackend_h 82 #endif // SQLStatementBackend_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698