| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebDatabase_h | 31 #ifndef WebDatabase_h |
| 32 #define WebDatabase_h | 32 #define WebDatabase_h |
| 33 | 33 |
| 34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
| 35 #include "WebSecurityOrigin.h" | 35 #include "WebSecurityOrigin.h" |
| 36 | 36 |
| 37 namespace blink { class DatabaseBackendBase; } | |
| 38 | |
| 39 namespace blink { | 37 namespace blink { |
| 40 | 38 |
| 39 class DatabaseBackendBase; |
| 41 class WebString; | 40 class WebString; |
| 42 | 41 |
| 43 class WebDatabase { | 42 class WebDatabase { |
| 44 public: | 43 public: |
| 45 BLINK_EXPORT WebString name() const; | 44 BLINK_EXPORT WebString name() const; |
| 46 BLINK_EXPORT WebString displayName() const; | 45 BLINK_EXPORT WebString displayName() const; |
| 47 BLINK_EXPORT unsigned long estimatedSize() const; | 46 BLINK_EXPORT unsigned long estimatedSize() const; |
| 48 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; | 47 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; |
| 49 BLINK_EXPORT bool isSyncDatabase() const; | 48 BLINK_EXPORT bool isSyncDatabase() const; |
| 50 | 49 |
| 51 BLINK_EXPORT static void updateDatabaseSize( | 50 BLINK_EXPORT static void updateDatabaseSize( |
| 52 const WebString& originIdentifier, const WebString& name, long long size
); | 51 const WebString& originIdentifier, const WebString& name, long long size
); |
| 53 BLINK_EXPORT static void updateSpaceAvailable( | 52 BLINK_EXPORT static void updateSpaceAvailable( |
| 54 const WebString& originIdentifier, long long spaceAvailable); | 53 const WebString& originIdentifier, long long spaceAvailable); |
| 55 BLINK_EXPORT static void resetSpaceAvailable( | 54 BLINK_EXPORT static void resetSpaceAvailable( |
| 56 const WebString& originIdentifier); | 55 const WebString& originIdentifier); |
| 57 | 56 |
| 58 BLINK_EXPORT static void closeDatabaseImmediately( | 57 BLINK_EXPORT static void closeDatabaseImmediately( |
| 59 const WebString& originIdentifier, const WebString& databaseName); | 58 const WebString& originIdentifier, const WebString& databaseName); |
| 60 | 59 |
| 61 #if BLINK_IMPLEMENTATION | 60 #if BLINK_IMPLEMENTATION |
| 62 WebDatabase(const blink::DatabaseBackendBase*); | 61 WebDatabase(const DatabaseBackendBase*); |
| 63 #endif | 62 #endif |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 WebDatabase() { } | 65 WebDatabase() { } |
| 67 const blink::DatabaseBackendBase* m_database; | 66 const DatabaseBackendBase* m_database; |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace blink | 69 } // namespace blink |
| 71 | 70 |
| 72 #endif | 71 #endif |
| OLD | NEW |