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 WebCore { class DatabaseBackendBase; } | 37 namespace blink { class DatabaseBackendBase; } |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class WebString; | 41 class WebString; |
42 | 42 |
43 class WebDatabase { | 43 class WebDatabase { |
44 public: | 44 public: |
45 BLINK_EXPORT WebString name() const; | 45 BLINK_EXPORT WebString name() const; |
46 BLINK_EXPORT WebString displayName() const; | 46 BLINK_EXPORT WebString displayName() const; |
47 BLINK_EXPORT unsigned long estimatedSize() const; | 47 BLINK_EXPORT unsigned long estimatedSize() const; |
48 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; | 48 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; |
49 BLINK_EXPORT bool isSyncDatabase() const; | 49 BLINK_EXPORT bool isSyncDatabase() const; |
50 | 50 |
51 BLINK_EXPORT static void updateDatabaseSize( | 51 BLINK_EXPORT static void updateDatabaseSize( |
52 const WebString& originIdentifier, const WebString& name, long long size
); | 52 const WebString& originIdentifier, const WebString& name, long long size
); |
53 BLINK_EXPORT static void updateSpaceAvailable( | 53 BLINK_EXPORT static void updateSpaceAvailable( |
54 const WebString& originIdentifier, long long spaceAvailable); | 54 const WebString& originIdentifier, long long spaceAvailable); |
55 BLINK_EXPORT static void resetSpaceAvailable( | 55 BLINK_EXPORT static void resetSpaceAvailable( |
56 const WebString& originIdentifier); | 56 const WebString& originIdentifier); |
57 | 57 |
58 BLINK_EXPORT static void closeDatabaseImmediately( | 58 BLINK_EXPORT static void closeDatabaseImmediately( |
59 const WebString& originIdentifier, const WebString& databaseName); | 59 const WebString& originIdentifier, const WebString& databaseName); |
60 | 60 |
61 #if BLINK_IMPLEMENTATION | 61 #if BLINK_IMPLEMENTATION |
62 WebDatabase(const WebCore::DatabaseBackendBase*); | 62 WebDatabase(const blink::DatabaseBackendBase*); |
63 #endif | 63 #endif |
64 | 64 |
65 private: | 65 private: |
66 WebDatabase() { } | 66 WebDatabase() { } |
67 const WebCore::DatabaseBackendBase* m_database; | 67 const blink::DatabaseBackendBase* m_database; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif | 72 #endif |
OLD | NEW |