summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_service.h
Commit message (Collapse)AuthorAgeFilesLines
* Add FilePath to base namespace.brettw@chromium.org2013-02-021-3/+2
| | | | | | | This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes. Review URL: https://codereview.chromium.org/12163003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: Merge build target 'appcache' to 'webkit_storage'hashimoto@chromium.org2012-10-231-3/+3
| | | | | | | | | | | | BUG=155242 TEST=build TBR=darin@chromium.org for trivial gyp changes Review URL: https://chromiumcodereview.appspot.com/11230022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163491 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: IWYU for base/time.h. Also fix misc lint errors.thestig@chromium.org2012-10-101-1/+0
| | | | | | | | TBR=ben,brettw,oshima,rdsmith Review URL: https://chromiumcodereview.appspot.com/11087021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160999 0039d316-1c4b-4281-b951-d872f2087c98
* Unwire the clear on exit preference from the storage systems.jochen@chromium.org2012-06-051-12/+4
| | | | | | | | | | | | | The "session only" rules should cover the functionality now UI changes and migration code will follow BUG=129349 TEST=added unit tests for the chrome/browser/net/sqlite* classes Review URL: https://chromiumcodereview.appspot.com/10447117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140502 0039d316-1c4b-4281-b951-d872f2087c98
* Workaround for a crashing appcache bug seen on the crash servers. Add an UMA ↵michaeln@google.com2012-05-031-4/+1
| | | | | | | | | stat to see how often this happens. Also cleanup a renmant of base::Bind transition. BUG=95101 Review URL: https://chromiumcodereview.appspot.com/10207020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135186 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, webkit/rsleevi@chromium.org2012-04-281-2/+5
| | | | | | | | | | BUG=123295 TEST=none Review URL: http://codereview.chromium.org/10066044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134449 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some grammar in comments, error messages and documentation.gavinp@chromium.org2012-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to all my reviewers, you are legion. I hope I didn't waste too much of your time. BUG=None Review URL: http://codereview.chromium.org/9854039 Review URL: http://codereview.chromium.org/9854043 Review URL: http://codereview.chromium.org/9863058 Review URL: http://codereview.chromium.org/9863059 Review URL: http://codereview.chromium.org/9887005 Review URL: http://codereview.chromium.org/9890002 Review URL: http://codereview.chromium.org/9891002 Review URL: http://codereview.chromium.org/9895003 Review URL: http://codereview.chromium.org/9896002 Review URL: http://codereview.chromium.org/9896003 Review URL: http://codereview.chromium.org/9897002 Review URL: http://codereview.chromium.org/9897003 Review URL: http://codereview.chromium.org/9903004 Review URL: http://codereview.chromium.org/9904003 Review URL: http://codereview.chromium.org/9904002 Review URL: http://codereview.chromium.org/9904004 Review URL: http://codereview.chromium.org/9906002 Review URL: http://codereview.chromium.org/9906001 Review URL: http://codereview.chromium.org/9906003 Review URL: http://codereview.chromium.org/9909001 Review URL: http://codereview.chromium.org/9909002 Review URL: http://codereview.chromium.org/9909003 Review URL: http://codereview.chromium.org/9909004 Review URL: http://codereview.chromium.org/9910001 Review URL: http://codereview.chromium.org/9910002 Review URL: http://codereview.chromium.org/9910010 Review URL: http://codereview.chromium.org/9911001 Review URL: http://codereview.chromium.org/9912001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130359 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid including gtest file directly, and go through base insteadjar@chromium.org2011-12-151-1/+1
| | | | | | | | | | | | | | | | | | We should consistently: #include "base/gtest_prod_util.h" which does the gtest include (from the right place, in a second repo, hidden in our tree). This is critical to being able to supplant the FRIEND_TEST macro, which we're experimenting with to optimize builds. r=brettw TBR=other owners (this is a trivial change) BUG=107727 Review URL: http://codereview.chromium.org/8954017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114685 0039d316-1c4b-4281-b951-d872f2087c98
* Appcache, local storage, indexed db, databases: skip exit-time deletion when ↵marja@chromium.org2011-12-081-0/+9
| | | | | | | | | | | | restarting. BUG=104291 TEST={ChromeAppCacheServiceTest, DOMStorageTest, IndexedDBBrowserTest, DatabaseTrackerTest}.SaveSessionState Review URL: http://codereview.chromium.org/8820009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113590 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert AppCacheHelper::DeleteAppCachesForOrigin.jhawkins@chromium.org2011-12-021-3/+3
| | | | | | | | | | | BUG=none TEST=none R=groby@chromium.org Review URL: http://codereview.chromium.org/8769024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112635 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert AppCacheHelper::DeleteAppCacheGroup.jhawkins@chromium.org2011-12-021-1/+1
| | | | | | | | | | BUG=none TEST=none R=groby Review URL: http://codereview.chromium.org/8775034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112623 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert AppCacheService::GetAllAppCacheInfo.jhawkins@chromium.org2011-12-021-1/+1
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8776024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112622 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Implement a 1-arity CancelableCallback and use this to implementjhawkins@chromium.org2011-11-301-1/+4
| | | | | | | | | | | | | net::CancelableCompletionClosure. BUG=none TEST=none R=ajwong@chromium.org Review URL: http://codereview.chromium.org/8662047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112279 0039d316-1c4b-4281-b951-d872f2087c98
* Begin CompletionCallback switchover.willchan@chromium.org2011-10-011-4/+4
| | | | | | | | | | | | | Rename CompletionCallback to OldCompletionCallback in preparation for introducing a new CompletionCallback based on base::Callback. Also renames other CompletionCallback types like CancelableCompletionCallback and TestCompletionCallback and CompletionCallbackImpl. All using sed with s/CompletionCallback/OldCompletionCallback/g. BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8070013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103650 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare appcache to build as a DLL in the component build.dpranke@chromium.org2011-09-141-2/+3
| | | | | | | | | | | | | | | | This is needed to break the circular dependencies between appcache, chrome, and content (once we fix the messageloopproxy issue as seen in http://codereview.chromium.org/7841052/ ). R=michaeln@chromium.org, jam@chromium.org BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100831 Review URL: http://codereview.chromium.org/7859021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101017 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Prepare appcache to build as a DLL in the component build."dpranke@chromium.org2011-09-131-3/+2
| | | | | | | | | | TBR=michaeln@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/7881006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100832 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare appcache to build as a DLL in the component build.dpranke@chromium.org2011-09-131-2/+3
| | | | | | | | | | | | | | This is needed to break the circular dependencies between appcache, chrome, and content (once we fix the messageloopproxy issue as seen in http://codereview.chromium.org/7841052/ ). R=michaeln@chromium.org, jam@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7859021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100831 0039d316-1c4b-4281-b951-d872f2087c98
* Replace ancient crufty AppCacheThread with much improved MessageLoopProxy usage.michaeln@google.com2011-09-121-0/+1
| | | | | | Review URL: http://codereview.chromium.org/7863009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100726 0039d316-1c4b-4281-b951-d872f2087c98
* Third-party appcache blocking.marja@chromium.org2011-09-081-0/+1
| | | | | | | | | | BUG=72586 TEST=AppCacheHostTest.SelectCacheAllowed, AppCacheHostTest.SelectCacheBlocked, AppCacheRequestHandlerTest.MainResource_Blocked Review URL: http://codereview.chromium.org/7720022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100131 0039d316-1c4b-4281-b951-d872f2087c98
* Delete appcaches when missing entries are detected.michaeln@google.com2011-07-221-0/+6
| | | | | | | | BUG=88968,50657 TEST=appcache_service_unittest.cc Review URL: http://codereview.chromium.org/7342031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93736 0039d316-1c4b-4281-b951-d872f2087c98
* The problem:marja@google.com2011-07-221-0/+5
| | | | | | | | | | | | When the user has the "Clear cookies and other site and plug-in data when I close my browser" setting enabled, all appcache data is deleted when the user closes the browser. The intention is to protect an appcache from deletion, if the user has installed a hosted app which refers to the origin of the appcache. BUG=79604 TEST=ChromeAppCacheService.KeepOnDestruction, ChromeAppCacheService.RemoveOnDestruction Review URL: http://codereview.chromium.org/7210006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93597 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache + Quota integrationmichaeln@google.com2011-06-101-0/+16
| | | | | | | | | | | | | * Notify the QuotaManager of accesses and modifications to the amount of storage utlized. * Implement the QuotaClient interface so the manager can query the appcache for usage and delete data. * When storing appcaches, use QuotaManager GetUsageAndQuota and respect the limit. * Remove the old and unsed support for storing per-origin quota values in the appcache DB. BUG=61676 TEST=unittests Review URL: http://codereview.chromium.org/7031065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88746 0039d316-1c4b-4281-b951-d872f2087c98
* Enough appcache + quota integration to call ↵michaeln@google.com2011-05-161-1/+8
| | | | | | | | | | NotifyOriginInUse/NotifyOriginNoLongerInUse when frames are loaded/unloaded. BUG=61676 TEST=appcache_host_unittest.cc Review URL: http://codereview.chromium.org/6999008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85507 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Add an accessor for an ExtensionSpecialStoragePolicy to the Profile classmichaeln@google.com2011-02-261-0/+10
| | | | | | | | | | | and use it in the extension service, data remover, and storage subsystems. BUG=52357 TEST=extension_service_unittest.cc Review URL: http://codereview.chromium.org/6551028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76126 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Add a helper method to AppCacheService to test if a request can be ↵michaeln@google.com2011-01-251-0/+6
| | | | | | | | | | | handled while offline. BUG=65547, chromium-os:9559 TEST=none Review URL: http://codereview.chromium.org/6269016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72433 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to the remaining files under url_request directory.tfarina@chromium.org2011-01-061-4/+8
| | | | | | | | | | | | It just adds the 'namespace net' to these files and a typedef for them, because there are many entries to fix in one pass. They will be fixed later. BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/6056007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70592 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for WKBug 47000: a failure mode given bad content (in an unlikely form). ↵michaeln@chromium.org2010-11-031-12/+3
| | | | | | | | | | | | The error occurs when an html page is put in an appcache as a fallback resource (so it's listed in a fallback section), but it contains a manifest attribute that refers to a different manifest file. The system should mark the resource as foreign and exclude it from main resource loads, but it was failing to do so. The fix is to do that. BUG=WK47000 TEST=http/tests/appcache/foreign-fallback.html Review URL: http://codereview.chromium.org/3529009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64868 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to ↵erg@google.com2010-09-301-1/+3
| | | | | | | | | | | | | | non-POD structs. Cuts ~2MB off our .a files (Debug, Linux). Also added the "virtual" keyword on a whole bunch of virtual dtors that were missing it. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3522004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61100 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unnecessary STL #includes from src/webkit.viettrungluu@chromium.org2010-08-191-1/+1
| | | | | | | | | BUG=none TEST=builds Review URL: http://codereview.chromium.org/3122029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56655 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 6)thestig@chromium.org2010-08-191-2/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3093013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56641 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome side of changes required to populate appcache resource list.kkanetkar@chromium.org2010-07-281-23/+1
| | | | | | | | | BUG = 2821005 TEST = Manually navigate. Review URL: http://codereview.chromium.org/3009005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53902 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Use a dedicated thread for the disk cache.rvargas@google.com2010-06-071-1/+6
| | | | | | | | | | BUG=26730 TEST=current tests Review URL: http://codereview.chromium.org/2249005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49111 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the content settings UI to the appcache.michaeln@chromium.org2010-03-051-1/+63
| | | | | | | | | | | | | * Populate the tree view with appcaches * Delete selected appcaches from the tree view * Delete the date range indicated in the browsing data remover TEST=manual BUG=34634 Review URL: http://codereview.chromium.org/660423 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40796 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce an AppCachePolicy interface that allows the containing browser to ↵michaeln@chromium.org2010-02-171-0/+11
| | | | | | | | | | | determine appcache permissions. The policy can allow or deny loading existing manifests or the creation of new manifests. The policy check for creating new manifests can be async to allow for a user prompt. BUG=none TEST=new unit tests added Review URL: http://codereview.chromium.org/565042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39280 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a notification to trigger memory purging on the IO thread and use ↵michaeln@chromium.org2010-01-131-0/+5
| | | | | | | | | | | it in ChromeAppCacheService. TEST=manual BUG=none Review URL: http://codereview.chromium.org/547016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36181 0039d316-1c4b-4281-b951-d872f2087c98
* AppCacheResponse storage implementationmichaeln@google.com2009-10-211-1/+0
| | | | | | | | | | | | | | * classes AppCacheResponseReader and AppCacheResponseWriter * also implements AppCacheStorage.LoadResponseInfo() * using a memory-backed disk_cache for now, so not really on disk yet TEST=appcache_response_unittest.cc BUG=none Review URL: http://codereview.chromium.org/269062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29670 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache StorageAPIsmichaeln@google.com2009-10-091-73/+12
| | | | | | | | | TEST=none yet, these are just API definitions stubbed out for now BUG=none Review URL: http://codereview.chromium.org/209071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28513 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of application cache update algorithm.jennb@chromium.org2009-10-061-2/+0
| | | | | | | | | | | Does not include storage nor processing of pending master entries. TEST=verify update functionality BUG=none Review URL: http://codereview.chromium.org/201070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28123 0039d316-1c4b-4281-b951-d872f2087c98
* Fix appcache_service and request_context referencing.michaeln@google.com2009-09-221-9/+10
| | | | | | | | | | | | There is one appcache service per profile and several request context per profile. The profile holds a reference to the appcache service. Those request contexts which are subject to retrieval from appcaches hold a reference to the appcache service too. The appcache service is provided with a pointer back to the 'main' request context, this context is used when updating appcaches. Initialization is a little tricky because profiles can't be used on the IO thread and request contexts can't be used on the UI thread. BUG=22597,22125 TEST=many existing tests exercise profile/context creation Review URL: http://codereview.chromium.org/215024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26844 0039d316-1c4b-4281-b951-d872f2087c98
* * Fleshed out AppCacheHost class a fair amount, in particular the cache ↵michaeln@google.com2009-09-151-12/+34
| | | | | | | | | | | | | | | | selection algorithm. * Added some AppCacheHost unit tests. * Introduced AppCacheRequestHandler class, which replaces the clunkyApp CacheInterceptor::ExtraInfo struct. This impl is entirely skeletal stubs for now. TEST=appcache_unittest.cc, but really needs more BUG=none Review URL: http://codereview.chromium.org/192043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26275 0039d316-1c4b-4281-b951-d872f2087c98
* 1) Tell the AppCacheService which request context to use when fetching ↵michaeln@google.com2009-09-151-2/+30
| | | | | | | | | | | | | resources for updates. Done for both chrome and test_shell. The service does not yet take a reference to that context, because the extra reference apparently gives some tests grief. 2) Added methods to generate new storage ids for different object types on the IO thread. BUG=none TEST=none Review URL: http://codereview.chromium.org/195077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26253 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb request interception into the appcache library for both chrome and ↵michaeln@google.com2009-09-011-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | test_shell. AppCache library: * Added AppCacheInterceptor, which is derived from URLRequest::Interceptor. Chrome: * Each UserProfile instantiates a ChromeAppCacheService, which is derived from an appcache library class. * Each ChromeURLRequestContext associated with that profile has a reference to that instance. * ResourceDispatcherHost pokes AppCacheInterceptor when initiating URLRequests and when returning the response head. TestShell: * Added SimpleAppCacheSystem which bundles together appcache lib components for use in a single process with an UI and IO thread. * TestShellWebKit instantiates and initializes an instance of the above, aimed at at temp directory that will get cleaned up when the test run is over. * SimpleResourceLoaderBridge pokes the system when initiating URLRequests and when returning the response head. TEST=none, although many existing tests exercise this stuff BUG=none Review URL: http://codereview.chromium.org/173406 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25099 0039d316-1c4b-4281-b951-d872f2087c98
* Skeleton classes for appcache library framework. This is a work in progress. ↵jennb@chromium.org2009-08-261-0/+60
Committing early to allow other code to use these objects, but still need to consider refptrs and add unittests. TEST=none (will add when classes are fleshed out more) BUG=none Review URL: http://codereview.chromium.org/174034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24554 0039d316-1c4b-4281-b951-d872f2087c98