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

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

Issue 196533003: Oilpan: Prepare to move AbstractSQLTransaction and SQLTransaction to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class Database; 44 class Database;
45 class ExceptionState; 45 class ExceptionState;
46 class SQLError; 46 class SQLError;
47 class SQLStatementCallback; 47 class SQLStatementCallback;
48 class SQLStatementErrorCallback; 48 class SQLStatementErrorCallback;
49 class SQLTransactionCallback; 49 class SQLTransactionCallback;
50 class SQLTransactionErrorCallback; 50 class SQLTransactionErrorCallback;
51 class SQLValue; 51 class SQLValue;
52 class VoidCallback; 52 class VoidCallback;
53 53
54 class SQLTransaction FINAL : public SQLTransactionStateMachine<SQLTransaction>, public AbstractSQLTransaction, public ScriptWrappable { 54 class SQLTransaction FINAL : public AbstractSQLTransaction, public SQLTransactio nStateMachine<SQLTransaction>, public ScriptWrappable {
55 public: 55 public:
56 static PassRefPtr<SQLTransaction> create(Database*, PassOwnPtr<SQLTransactio nCallback>, 56 static PassRefPtrWillBeRawPtr<SQLTransaction> create(Database*, PassOwnPtr<S QLTransactionCallback>,
57 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionError Callback>, 57 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionError Callback>,
58 bool readOnly); 58 bool readOnly);
59 virtual void trace(Visitor*) OVERRIDE;
59 60
60 void performPendingCallback(); 61 void performPendingCallback();
61 62
62 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument s, 63 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument s,
63 PassOwnPtr<SQLStatementCallback>, PassOwnPtr<SQLStatementErrorCallback>, ExceptionState&); 64 PassOwnPtr<SQLStatementCallback>, PassOwnPtr<SQLStatementErrorCallback>, ExceptionState&);
64 65
65 Database* database() { return m_database.get(); } 66 Database* database() { return m_database.get(); }
66 67
67 PassOwnPtr<SQLTransactionErrorCallback> releaseErrorCallback(); 68 PassOwnPtr<SQLTransactionErrorCallback> releaseErrorCallback();
68 69
(...skipping 20 matching lines...) Expand all
89 SQLTransactionState deliverTransactionErrorCallback(); 90 SQLTransactionState deliverTransactionErrorCallback();
90 SQLTransactionState deliverStatementCallback(); 91 SQLTransactionState deliverStatementCallback();
91 SQLTransactionState deliverQuotaIncreaseCallback(); 92 SQLTransactionState deliverQuotaIncreaseCallback();
92 SQLTransactionState deliverSuccessCallback(); 93 SQLTransactionState deliverSuccessCallback();
93 94
94 SQLTransactionState unreachableState(); 95 SQLTransactionState unreachableState();
95 SQLTransactionState sendToBackendState(); 96 SQLTransactionState sendToBackendState();
96 97
97 SQLTransactionState nextStateForTransactionError(); 98 SQLTransactionState nextStateForTransactionError();
98 99
99 RefPtrWillBeCrossThreadPersistent<Database> m_database; 100 RefPtrWillBeMember<Database> m_database;
100 RefPtr<AbstractSQLTransactionBackend> m_backend; 101 RefPtr<AbstractSQLTransactionBackend> m_backend;
101 SQLCallbackWrapper<SQLTransactionCallback> m_callbackWrapper; 102 SQLCallbackWrapper<SQLTransactionCallback> m_callbackWrapper;
102 SQLCallbackWrapper<VoidCallback> m_successCallbackWrapper; 103 SQLCallbackWrapper<VoidCallback> m_successCallbackWrapper;
103 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper; 104 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper;
104 105
105 bool m_executeSqlAllowed; 106 bool m_executeSqlAllowed;
106 RefPtr<SQLError> m_transactionError; 107 RefPtr<SQLError> m_transactionError;
107 108
108 bool m_readOnly; 109 bool m_readOnly;
109 }; 110 };
110 111
111 } // namespace WebCore 112 } // namespace WebCore
112 113
113 #endif // SQLTransaction_h 114 #endif // SQLTransaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698