OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // Deletes a database file and returns the error code | 180 // Deletes a database file and returns the error code |
181 virtual int databaseDeleteFile(const WebString& vfsFileName, bool syncDir) {
return 0; } | 181 virtual int databaseDeleteFile(const WebString& vfsFileName, bool syncDir) {
return 0; } |
182 | 182 |
183 // Returns the attributes of the given database file | 183 // Returns the attributes of the given database file |
184 virtual long databaseGetFileAttributes(const WebString& vfsFileName) { retur
n 0; } | 184 virtual long databaseGetFileAttributes(const WebString& vfsFileName) { retur
n 0; } |
185 | 185 |
186 // Returns the size of the given database file | 186 // Returns the size of the given database file |
187 virtual long long databaseGetFileSize(const WebString& vfsFileName) { return
0; } | 187 virtual long long databaseGetFileSize(const WebString& vfsFileName) { return
0; } |
188 | 188 |
189 // Returns the space available for the given origin | 189 // Returns the space available for the given origin |
190 virtual long long databaseGetSpaceAvailableForOrigin(const blink::WebString&
originIdentifier) { return 0; } | 190 virtual long long databaseGetSpaceAvailableForOrigin(const WebString& origin
Identifier) { return 0; } |
191 | 191 |
192 | 192 |
193 // DOM Storage -------------------------------------------------- | 193 // DOM Storage -------------------------------------------------- |
194 | 194 |
195 // Return a LocalStorage namespace | 195 // Return a LocalStorage namespace |
196 virtual WebStorageNamespace* createLocalStorageNamespace() { return 0; } | 196 virtual WebStorageNamespace* createLocalStorageNamespace() { return 0; } |
197 | 197 |
198 | 198 |
199 // FileSystem ---------------------------------------------------------- | 199 // FileSystem ---------------------------------------------------------- |
200 | 200 |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // WebCrypto ---------------------------------------------------------- | 596 // WebCrypto ---------------------------------------------------------- |
597 | 597 |
598 virtual WebCrypto* crypto() { return 0; } | 598 virtual WebCrypto* crypto() { return 0; } |
599 | 599 |
600 | 600 |
601 // Platform events ----------------------------------------------------- | 601 // Platform events ----------------------------------------------------- |
602 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. | 602 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. |
603 | 603 |
604 // Request the platform to start listening to the events of the specified | 604 // Request the platform to start listening to the events of the specified |
605 // type and notify the given listener (if not null) when there is an update. | 605 // type and notify the given listener (if not null) when there is an update. |
606 virtual void startListening(blink::WebPlatformEventType type, blink::WebPlat
formEventListener* listener) { } | 606 virtual void startListening(WebPlatformEventType type, WebPlatformEventListe
ner* listener) { } |
607 | 607 |
608 // Request the platform to stop listening to the specified event and no | 608 // Request the platform to stop listening to the specified event and no |
609 // longer notify the listener, if any. | 609 // longer notify the listener, if any. |
610 virtual void stopListening(blink::WebPlatformEventType type) { } | 610 virtual void stopListening(WebPlatformEventType type) { } |
611 | 611 |
612 // Quota ----------------------------------------------------------- | 612 // Quota ----------------------------------------------------------- |
613 | 613 |
614 // Queries the storage partition's storage usage and quota information. | 614 // Queries the storage partition's storage usage and quota information. |
615 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | 615 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called |
616 // with the current usage and quota information for the partition. When | 616 // with the current usage and quota information for the partition. When |
617 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | 617 // an error occurs WebStorageQuotaCallbacks::didFail is called with an |
618 // error code. | 618 // error code. |
619 virtual void queryStorageUsageAndQuota( | 619 virtual void queryStorageUsageAndQuota( |
620 const WebURL& storagePartition, | 620 const WebURL& storagePartition, |
(...skipping 11 matching lines...) Expand all Loading... |
632 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 632 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
633 | 633 |
634 | 634 |
635 protected: | 635 protected: |
636 virtual ~Platform() { } | 636 virtual ~Platform() { } |
637 }; | 637 }; |
638 | 638 |
639 } // namespace blink | 639 } // namespace blink |
640 | 640 |
641 #endif | 641 #endif |
OLD | NEW |