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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 WebSecurityOrigin WebDatabase::securityOrigin() const | 62 WebSecurityOrigin WebDatabase::securityOrigin() const |
63 { | 63 { |
64 ASSERT(m_database); | 64 ASSERT(m_database); |
65 return WebSecurityOrigin(m_database->securityOrigin()); | 65 return WebSecurityOrigin(m_database->securityOrigin()); |
66 } | 66 } |
67 | 67 |
68 bool WebDatabase::isSyncDatabase() const | 68 bool WebDatabase::isSyncDatabase() const |
69 { | 69 { |
70 ASSERT(m_database); | 70 return false; |
71 return m_database->isSyncDatabase(); | |
72 } | 71 } |
73 | 72 |
74 void WebDatabase::updateDatabaseSize(const WebString& originIdentifier, const We
bString& name, long long size) | 73 void WebDatabase::updateDatabaseSize(const WebString& originIdentifier, const We
bString& name, long long size) |
75 { | 74 { |
76 QuotaTracker::instance().updateDatabaseSize(originIdentifier, name, size); | 75 QuotaTracker::instance().updateDatabaseSize(originIdentifier, name, size); |
77 } | 76 } |
78 | 77 |
79 void WebDatabase::updateSpaceAvailable(const WebString& originIdentifier, long l
ong spaceAvailable) | 78 void WebDatabase::updateSpaceAvailable(const WebString& originIdentifier, long l
ong spaceAvailable) |
80 { | 79 { |
81 QuotaTracker::instance().updateSpaceAvailableToOrigin(originIdentifier, spac
eAvailable); | 80 QuotaTracker::instance().updateSpaceAvailableToOrigin(originIdentifier, spac
eAvailable); |
82 } | 81 } |
83 | 82 |
84 void WebDatabase::resetSpaceAvailable(const WebString& originIdentifier) | 83 void WebDatabase::resetSpaceAvailable(const WebString& originIdentifier) |
85 { | 84 { |
86 QuotaTracker::instance().resetSpaceAvailableToOrigin(originIdentifier); | 85 QuotaTracker::instance().resetSpaceAvailableToOrigin(originIdentifier); |
87 } | 86 } |
88 | 87 |
89 void WebDatabase::closeDatabaseImmediately(const WebString& originIdentifier, co
nst WebString& databaseName) | 88 void WebDatabase::closeDatabaseImmediately(const WebString& originIdentifier, co
nst WebString& databaseName) |
90 { | 89 { |
91 DatabaseManager::manager().closeDatabasesImmediately(originIdentifier, datab
aseName); | 90 DatabaseManager::manager().closeDatabasesImmediately(originIdentifier, datab
aseName); |
92 } | 91 } |
93 | 92 |
94 WebDatabase::WebDatabase(const DatabaseBackendBase* database) | 93 WebDatabase::WebDatabase(const DatabaseBackendBase* database) |
95 : m_database(database) | 94 : m_database(database) |
96 { | 95 { |
97 } | 96 } |
98 | 97 |
99 } // namespace blink | 98 } // namespace blink |
OLD | NEW |