| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) | 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) |
| 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 * 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class SQLiteTransaction; | 45 class SQLiteTransaction; |
| 46 | 46 |
| 47 extern const int SQLResultDone; | 47 extern const int SQLResultDone; |
| 48 extern const int SQLResultOk; | 48 extern const int SQLResultOk; |
| 49 extern const int SQLResultRow; | 49 extern const int SQLResultRow; |
| 50 extern const int SQLResultFull; | 50 extern const int SQLResultFull; |
| 51 extern const int SQLResultInterrupt; | 51 extern const int SQLResultInterrupt; |
| 52 extern const int SQLResultConstraint; | 52 extern const int SQLResultConstraint; |
| 53 | 53 |
| 54 class SQLiteDatabase { | 54 class SQLiteDatabase { |
| 55 DISALLOW_ALLOCATION(); | 55 DISALLOW_NEW(); |
| 56 WTF_MAKE_NONCOPYABLE(SQLiteDatabase); | 56 WTF_MAKE_NONCOPYABLE(SQLiteDatabase); |
| 57 friend class SQLiteTransaction; | 57 friend class SQLiteTransaction; |
| 58 public: | 58 public: |
| 59 SQLiteDatabase(); | 59 SQLiteDatabase(); |
| 60 ~SQLiteDatabase(); | 60 ~SQLiteDatabase(); |
| 61 | 61 |
| 62 bool open(const String& filename); | 62 bool open(const String& filename); |
| 63 bool isOpen() const { return m_db; } | 63 bool isOpen() const { return m_db; } |
| 64 void close(); | 64 void close(); |
| 65 | 65 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 int m_openError; | 137 int m_openError; |
| 138 CString m_openErrorMessage; | 138 CString m_openErrorMessage; |
| 139 | 139 |
| 140 int m_lastChangesCount; | 140 int m_lastChangesCount; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| 144 | 144 |
| 145 #endif | 145 #endif |
| OLD | NEW |