| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 // WebFileSystemCallbacks::didSucceed() must be called when the operation | 322 // WebFileSystemCallbacks::didSucceed() must be called when the operation |
| 323 // is completed successfully. WebFileSystemCallbacks::didFail() must be | 323 // is completed successfully. WebFileSystemCallbacks::didFail() must be |
| 324 // called otherwise. | 324 // called otherwise. |
| 325 // All in-flight operations and following operations may fail after the | 325 // All in-flight operations and following operations may fail after the |
| 326 // FileSystem is deleted. | 326 // FileSystem is deleted. |
| 327 virtual void deleteFileSystem( | 327 virtual void deleteFileSystem( |
| 328 WebFrame*, WebFileSystemType, WebFileSystemCallbacks*) { } | 328 WebFrame*, WebFileSystemType, WebFileSystemCallbacks*) { } |
| 329 | 329 |
| 330 // Quota --------------------------------------------------------- | 330 // Quota --------------------------------------------------------- |
| 331 | 331 |
| 332 // Queries the origin's storage usage and quota information. | |
| 333 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | |
| 334 // with the current usage and quota information for the origin. When | |
| 335 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | |
| 336 // error code. | |
| 337 // The callbacks object is deleted when the callback method is called | |
| 338 // and does not need to be (and should not be) deleted manually. | |
| 339 // FIXME: Deprecate this from WebFrameClient. | |
| 340 virtual void queryStorageUsageAndQuota( | |
| 341 WebFrame*, WebStorageQuotaType, WebStorageQuotaCallbacks*) { } | |
| 342 | |
| 343 // Requests a new quota size for the origin's storage. | 332 // Requests a new quota size for the origin's storage. |
| 344 // |newQuotaInBytes| indicates how much storage space (in bytes) the | 333 // |newQuotaInBytes| indicates how much storage space (in bytes) the |
| 345 // caller expects to need. | 334 // caller expects to need. |
| 346 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when | 335 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when |
| 347 // a new quota is granted. WebStorageQuotaCallbacks::didFail | 336 // a new quota is granted. WebStorageQuotaCallbacks::didFail |
| 348 // is called with an error code otherwise. | 337 // is called with an error code otherwise. |
| 349 // Note that the requesting quota size may not always be granted and | 338 // Note that the requesting quota size may not always be granted and |
| 350 // a smaller amount of quota than requested might be returned. | 339 // a smaller amount of quota than requested might be returned. |
| 351 // The callbacks object is deleted when the callback method is called | 340 // The callbacks object is deleted when the callback method is called |
| 352 // and does not need to be (and should not be) deleted manually. | 341 // and does not need to be (and should not be) deleted manually. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // Extensions3D.h in WebCore/platform/graphics). | 387 // Extensions3D.h in WebCore/platform/graphics). |
| 399 virtual void didLoseWebGLContext(WebFrame*, int) { } | 388 virtual void didLoseWebGLContext(WebFrame*, int) { } |
| 400 | 389 |
| 401 protected: | 390 protected: |
| 402 ~WebFrameClient() { } | 391 ~WebFrameClient() { } |
| 403 }; | 392 }; |
| 404 | 393 |
| 405 } // namespace WebKit | 394 } // namespace WebKit |
| 406 | 395 |
| 407 #endif | 396 #endif |
| OLD | NEW |