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

Side by Side Diff: Source/modules/webdatabase/SQLStatement.h

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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, 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 28 matching lines...) Expand all
39 class Database; 39 class Database;
40 class SQLError; 40 class SQLError;
41 class SQLStatementBackend; 41 class SQLStatementBackend;
42 class SQLStatementCallback; 42 class SQLStatementCallback;
43 class SQLStatementErrorCallback; 43 class SQLStatementErrorCallback;
44 class SQLTransaction; 44 class SQLTransaction;
45 45
46 class SQLStatement FINAL : public NoBaseWillBeGarbageCollectedFinalized<SQLState ment> { 46 class SQLStatement FINAL : public NoBaseWillBeGarbageCollectedFinalized<SQLState ment> {
47 public: 47 public:
48 static PassOwnPtrWillBeRawPtr<SQLStatement> create(Database*, 48 static PassOwnPtrWillBeRawPtr<SQLStatement> create(Database*,
49 PassOwnPtrWillBeRawPtr<SQLStatementCallback>, PassOwnPtrWillBeRawPtr<SQL StatementErrorCallback>); 49 SQLStatementCallback*, SQLStatementErrorCallback*);
50 ~SQLStatement(); 50 ~SQLStatement();
51 void trace(Visitor*); 51 void trace(Visitor*);
52 52
53 bool performCallback(SQLTransaction*); 53 bool performCallback(SQLTransaction*);
54 54
55 void setBackend(SQLStatementBackend*); 55 void setBackend(SQLStatementBackend*);
56 56
57 bool hasCallback(); 57 bool hasCallback();
58 bool hasErrorCallback(); 58 bool hasErrorCallback();
59 59
60 private: 60 private:
61 SQLStatement(Database*, PassOwnPtrWillBeRawPtr<SQLStatementCallback>, PassOw nPtrWillBeRawPtr<SQLStatementErrorCallback>); 61 SQLStatement(Database*, SQLStatementCallback*, SQLStatementErrorCallback*);
62 62
63 // The SQLStatementBackend owns the SQLStatement. Hence, the backend is 63 // The SQLStatementBackend owns the SQLStatement. Hence, the backend is
64 // guaranteed to be outlive the SQLStatement, and it is safe for us to refer 64 // guaranteed to be outlive the SQLStatement, and it is safe for us to refer
65 // to the backend using a raw pointer here. 65 // to the backend using a raw pointer here.
66 RawPtrWillBeMember<SQLStatementBackend> m_backend; 66 RawPtrWillBeMember<SQLStatementBackend> m_backend;
67 67
68 SQLCallbackWrapper<SQLStatementCallback> m_statementCallbackWrapper; 68 SQLCallbackWrapper<SQLStatementCallback> m_statementCallbackWrapper;
69 SQLCallbackWrapper<SQLStatementErrorCallback> m_statementErrorCallbackWrappe r; 69 SQLCallbackWrapper<SQLStatementErrorCallback> m_statementErrorCallbackWrappe r;
70 }; 70 };
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif // SQLStatement_h 74 #endif // SQLStatement_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLCallbackWrapper.h ('k') | Source/modules/webdatabase/SQLStatement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698