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

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

Issue 561093003: Remove worker support of Web SQL Database. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 #include "modules/webdatabase/SQLError.h" 31 #include "modules/webdatabase/SQLError.h"
32 #include "modules/webdatabase/SQLTransactionState.h" 32 #include "modules/webdatabase/SQLTransactionState.h"
33 #include "platform/heap/Handle.h" 33 #include "platform/heap/Handle.h"
34 #include "wtf/PassOwnPtr.h" 34 #include "wtf/PassOwnPtr.h"
35 #include "wtf/ThreadSafeRefCounted.h" 35 #include "wtf/ThreadSafeRefCounted.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 // FIXME: This abstraction is unnecessary because SQLTransactionBackendSync was
42 // removed.
41 class AbstractSQLTransactionBackend : public ThreadSafeRefCountedWillBeGarbageCo llectedFinalized<AbstractSQLTransactionBackend> { 43 class AbstractSQLTransactionBackend : public ThreadSafeRefCountedWillBeGarbageCo llectedFinalized<AbstractSQLTransactionBackend> {
42 public: 44 public:
43 virtual ~AbstractSQLTransactionBackend() { } 45 virtual ~AbstractSQLTransactionBackend() { }
44 virtual void trace(Visitor*) { } 46 virtual void trace(Visitor*) { }
45 47
46 virtual void requestTransitToState(SQLTransactionState) = 0; 48 virtual void requestTransitToState(SQLTransactionState) = 0;
47 49
48 virtual SQLErrorData* transactionError() = 0; 50 virtual SQLErrorData* transactionError() = 0;
49 virtual AbstractSQLStatement* currentStatement() = 0; 51 virtual AbstractSQLStatement* currentStatement() = 0;
50 virtual void setShouldRetryCurrentStatement(bool) = 0; 52 virtual void setShouldRetryCurrentStatement(bool) = 0;
51 53
52 virtual void executeSQL(PassOwnPtrWillBeRawPtr<AbstractSQLStatement>, const String& statement, 54 virtual void executeSQL(PassOwnPtrWillBeRawPtr<AbstractSQLStatement>, const String& statement,
53 const Vector<SQLValue>& arguments, int permissions) = 0; 55 const Vector<SQLValue>& arguments, int permissions) = 0;
54 56
55 }; 57 };
56 58
57 } // namespace blink 59 } // namespace blink
58 60
59 #endif // AbstractSQLTransactionBackend_h 61 #endif // AbstractSQLTransactionBackend_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/AbstractSQLTransaction.h ('k') | Source/modules/webdatabase/DatabaseBackend.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698