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