Changeset 83258 in webkit
- Timestamp:
- Apr 7, 2011 11:34:46 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r83256 r83258 1 2011-04-07 Kinuko Yasuda <kinuko@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Add WebKit API to query and request unified offline-storage quota 6 https://bugs.webkit.org/show_bug.cgi?id=57849 7 Just adding the API, this does not do anything yet. 8 9 The API is based on the public discussion for unified quota API: 10 http://lists.w3.org/Archives/Public/public-webapps/2011JanMar/0346.html 11 (The detail is not yet fully specified and might be subject to change.) 12 13 * public/WebFrameClient.h: 14 (WebKit::WebFrameClient::queryStorageUsageAndQuota): Added. 15 (WebKit::WebFrameClient::requestStorageQuota): Added. 16 * public/WebStorageQuotaCallbacks.h: Added. 17 (WebKit::WebStorageQuotaCallbacks::~WebStorageQuotaCallbacks): 18 * public/WebStorageQuotaType.h: Added. 19 1 20 2011-04-07 Dominic Cooney <dominicc@google.com> 2 21 -
trunk/Source/WebKit/chromium/WebKit.gyp
r83249 r83258 267 267 'public/WebStorageArea.h', 268 268 'public/WebStorageEventDispatcher.h', 269 'public/WebStorageQuotaCallbacks.h', 270 'public/WebStorageQuotaType.h', 269 271 'public/WebStorageNamespace.h', 270 272 'public/WebString.h', -
trunk/Source/WebKit/chromium/public/WebFrameClient.h
r80177 r83258 1 1 /* 2 * Copyright (C) 201 0Google Inc. All rights reserved.2 * Copyright (C) 2011 Google Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 36 36 #include "WebNavigationPolicy.h" 37 37 #include "WebNavigationType.h" 38 #include "WebStorageQuotaType.h" 38 39 #include "WebURLError.h" 39 40 … … 52 53 class WebSecurityOrigin; 53 54 class WebSharedWorker; 55 class WebStorageQuotaCallbacks; 54 56 class WebString; 55 57 class WebURL; … … 363 365 bool create, WebFileSystemCallbacks*) { } 364 366 367 // Quota --------------------------------------------------------- 368 369 // Queries the origin's storage usage and quota information. 370 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called 371 // with the current usage and quota information for the origin. When 372 // an error occurs WebStorageQuotaCallbacks::didFail is called with an 373 // error code. 374 // The callbacks object is deleted when the callback method is called 375 // and does not need to be (and should not be) deleted manually. 376 virtual void queryStorageUsageAndQuota( 377 WebFrame*, WebStorageQuotaType, WebStorageQuotaCallbacks*) { } 378 379 // Requests a new quota size for the origin's storage. 380 // |newQuotaInBytes| indicates how much storage space (in bytes) the 381 // caller expects to need. 382 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when 383 // a new quota is granted. WebStorageQuotaCallbacks::didFail 384 // is called with an error code otherwise. 385 // Note that the requesting quota size may not always be granted and 386 // a smaller amount of quota than requested might be returned. 387 // The callbacks object is deleted when the callback method is called 388 // and does not need to be (and should not be) deleted manually. 389 virtual void requestStorageQuota( 390 WebFrame*, WebStorageQuotaType, 391 unsigned long long newQuotaInBytes, 392 WebStorageQuotaCallbacks*) { } 393 365 394 protected: 366 395 ~WebFrameClient() { } -
trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp
r82459 r83258 39 39 #include "DocumentMarker.h" 40 40 #include "EditorInsertAction.h" 41 #include "ExceptionCode.h" 41 42 #include "FileError.h" 42 43 #include "FileMetadata.h" … … 76 77 #include "WebScrollbar.h" 77 78 #include "WebSettings.h" 79 #include "WebStorageQuotaError.h" 78 80 #include "WebTextAffinity.h" 79 81 #include "WebTextCaseSensitivity.h" … … 415 417 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingResult::ErrorGrammar, DocumentMarker::Grammar); 416 418 419 #if ENABLE(QUOTA) 420 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorNotSupported, NOT_SUPPORTED_ERR); 421 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorAbort, ABORT_ERR); 422 #endif 423 417 424 #if OS(DARWIN) 418 425 COMPILE_ASSERT_MATCHING_ENUM(WebThemeEngine::StateDisabled, PlatformBridge::StateDisabled);
Note: See TracChangeset
for help on using the changeset viewer.