summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_interfaces.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move webkit/appcache/* into webkit/{browser,common}/appcachekinuko@chromium.org2013-06-051-174/+0
| | | | | | | | | | | | | | | | | | This moves following files to webkit/common/appcache - appcache/appcache_interfaces* Following files to webkit/renderer/appcache - appcache/appcache_frontend_impl* - appcache/web_application_cache_host_impl* and everything else to webkit/browser/appcache. BUG=239109 TBR=avi@chromium.org, michaeln@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/16081004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204218 0039d316-1c4b-4281-b951-d872f2087c98
* AppCacheExecutableHandlers - parse manifest file and store/retrieve the ↵michaeln@google.com2013-04-171-2/+16
| | | | | | | | | | 'bit' indicating executable. BUG=101800 Review URL: https://codereview.chromium.org/13881003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194642 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: support custom schemes in appcache interfaces.pfeldman@chromium.org2013-04-031-1/+19
| | | | | | Review URL: https://codereview.chromium.org/13469005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192064 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium appcache pattern matching. Allow the INTERCEPT, FALLBACK, and ↵michaeln@google.com2013-03-301-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | NETWORK namespaces to optionally be defined with glob matching semantics. To enable the new feature, entries in those sections must be annotated with a trailing 'isPattern'. Up to 16 * characters in the path or query parts of the <patternurl> will match zero or more characters of requested urls. Without the 'isPattern' annotation, entries in those sections are interpreted as prefixes (as usual). FALLBACK: <patternurl> <targeturl> isPattern CHROMIUM-INTERCEPT: <patternurl> return <targeturl> isPattern NETWORK: <patternurl> isPattern # examples FALLBACK: /userpics/*.jpg /userpics/unavailablepic.jpg isPattern /userpics?userid=*&size=120x120 /userpics_static/unavailablepic120x120.jpg isPattern BUG=224426 Review URL: https://codereview.chromium.org/12628006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191480 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed Tip log level to Debug.zvorygin@google.com2013-02-181-2/+2
| | | | | | | | BUG=176500 Review URL: https://codereview.chromium.org/12279003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183122 0039d316-1c4b-4281-b951-d872f2087c98
* Add FilePath to base namespace.brettw@chromium.org2013-02-021-1/+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
* Reapply 130248 - Add full support for filesystem URLs. Trying to get the ↵apavlov@chromium.org2012-04-031-6/+6
| | | | | | | | | | build into the right state. TBR=pfeldman Review URL: https://chromiumcodereview.appspot.com/9956101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130363 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 130248 - Add full support for filesystem URLs.sergeyu@chromium.org2012-04-031-6/+6
| | | | | | | | | | | | | | BUG=114484 TEST=existing filesystem tests don't break Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128753 Review URL: https://chromiumcodereview.appspot.com/7811006 TBR=ericu@google.com Review URL: https://chromiumcodereview.appspot.com/9950079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130293 0039d316-1c4b-4281-b951-d872f2087c98
* Add full support for filesystem URLs.ericu@google.com2012-04-021-6/+6
| | | | | | | | | | | BUG=114484 TEST=existing filesystem tests don't break Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128753 Review URL: https://chromiumcodereview.appspot.com/7811006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130248 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128753 - Add full support for filesystem URLs.ericu@google.com2012-03-241-6/+6
| | | | | | | | | | | | BUG=114484 TEST=existing filesystem tests don't break Review URL: https://chromiumcodereview.appspot.com/7811006 TBR=ericu@google.com Review URL: https://chromiumcodereview.appspot.com/9808101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128757 0039d316-1c4b-4281-b951-d872f2087c98
* Add full support for filesystem URLs.ericu@google.com2012-03-241-6/+6
| | | | | | | | | BUG=114484 TEST=existing filesystem tests don't break Review URL: https://chromiumcodereview.appspot.com/7811006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128753 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache INTERCEPT namespace.michaeln@google.com2011-12-131-5/+18
| | | | | | | | | | | | | | - Add support for a custom CHROMIUM CACHE MANIFEST signature. Other browsers should ignore files with this signature. - Parse intercept namespace entries out of the new CHROMIUM-INTERCEPT manifest section. Other browsers should ignore this entire section. - Store and retrieve the new kind of namespace records in the database layer. - Upgrade existing databases to the new schema. - Look for matches in the new namespaces when handling main and sub resource requests. - Add unit tests. BUG=101565 Review URL: http://codereview.chromium.org/8396013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114151 0039d316-1c4b-4281-b951-d872f2087c98
* No longer check for a specific mime-type on appcache manifest files. The ↵michaeln@google.com2011-11-211-2/+0
| | | | | | | | | | spec was recently changed in this way. BUG=103939 TEST=appcache_update_job_unittest.cc Review URL: http://codereview.chromium.org/8566020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111000 0039d316-1c4b-4281-b951-d872f2087c98
* More groundwork for filestream based response storage.michaeln@google.com2011-10-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | This CL touches many files, but it amounts to mindless plumbing of a group_id value. This doesn't involve any new database or fileio or task scheduling. In order to read or write a response, callers now need to provide the group_id of the corresponding manifest, so the AppCacheStorage CreateRepsonseReader() and CreateResponseWriter() methods now take this additional parameter. The current disk_cache based impl doesn't use this param for anything, but the filestream based impl will use it to keep responses for a group in a particular subdirectory. When looking up the main resource for a page load via FindResponseForMainRequest, the group_id needs to be returned so the response may later be read, the AppCacheStorage::Delegate OnMainResponseFound() method has a param for that. A bunch of callsites, tests, and mocks are updated accordingly. BUG=78359 Review URL: http://codereview.chromium.org/8343018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106755 0039d316-1c4b-4281-b951-d872f2087c98
* Enhancements to the about://appcache-internals pages.michaeln@google.com2011-07-121-2/+3
| | | | | | | | | | | * added a new page to list the entries in a cache * added a new page to show an entry's headers and data BUG=none TEST=manual Review URL: http://codereview.chromium.org/7326023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92263 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-2/+2
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71586 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequest URLRequest;tfarina@chromium.org2010-11-301-2/+2
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5384002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67762 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to ↵erg@google.com2010-09-301-1/+24
| | | | | | | | | | | | | | 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
* AppCache: Output some information to the javascript console.michaeln@chromium.org2010-06-251-0/+10
| | | | | | | | BUG=13685 TEST=manual Review URL: http://codereview.chromium.org/2805030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50796 0039d316-1c4b-4281-b951-d872f2087c98
* Include the appcache and database tracker databases into the sql diagnostics ↵michaeln@chromium.org2010-04-021-1/+3
| | | | | | | | | | | | fold. TEST=manual BUG=none Review URL: http://codereview.chromium.org/1508016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43534 0039d316-1c4b-4281-b951-d872f2087c98
* * Fix a bug with the applicationCache.status return value. The wrong status ↵michaeln@google.com2009-11-121-1/+7
| | | | | | | | | | | | | value was visible via applicationCache.status after a swap because we sample GetStatus() before swappable_cache_ was cleared out. * Pull the plug on support for file:// urls in DEBUG builds for now. TEST=added to appcache_host_unittest.cc BUG=none Review URL: http://codereview.chromium.org/385071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31818 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming WebKit.gypyaar@chromium.org2009-11-121-1/+1
| | | | | | | | | | | | This mega patch contains a few simple but tightly dependent changes: 1. Deletion of webkit/api/WebKit.gyp. The file now lives in webkit.org. 2. Rename of webkit/webkit.gyp to webkit/webkit_glue.gyp. Having two webkit.gyp was a source of developer confusion. 3. Gyp dependencies are updated across chromium to point at the upstream WebKit.gyp and the renamed webkit_glue.gyp. 4. Some 200+ files include paths fixed to point to third_party/WebKit/WebKit/chromium instead of webkit/api. The later will be deleted in a subsequent patch. Review URL: http://codereview.chromium.org/387020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31749 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of application cache update algorithm.jennb@chromium.org2009-10-061-0/+2
| | | | | | | | | | | 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
* Copyright housecleaningmichaeln@google.com2009-09-231-1/+1
| | | | | | | | | | TBR=jennb BUG=none TEST=none Review URL: http://codereview.chromium.org/218008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26987 0039d316-1c4b-4281-b951-d872f2087c98
* Check for supported schemes and examine request methods at key points. We ↵michaeln@google.com2009-09-181-1/+25
| | | | | | | | | | | | | | | | | | | | | | | support http, https, and file (dbg only) URLs for now. * Added IsSchemeSupported, IsMethodSupported and IsMethodAndSchemeSupported helpers, and string constants. * Check for supported schemes and methods during cache selection and during request interception. Must be GET for cache selectino, GET or HEAD for request interception. * Renamed some data members in WebApplicationCacheHostImpl to more closely match naming elsewhere. * Added AppCacheHost::Observer to make life easier. (I like the observer model, and even noticed that the chrome code base has a multi-threaded version too (ala Gears)... nice :) * Switched to using the observer model in AppCacheRequestDispatcher instead of a WeakPtr. One of the observable methods is OnDestructionImminent(host). * Added gyp dependency on the net library BUG=none TEST=none Review URL: http://codereview.chromium.org/205017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26537 0039d316-1c4b-4281-b951-d872f2087c98
* Retrofit the pre-existing appache message dispatching with the new WebKit ↵michaeln@google.com2009-08-211-0/+44
APIs and concrete classes defined in our new appcache library, and get rid of the old files. There are many files in the CL, mostly to pickup constant values now defined in our new appcache library, and to reflect a terminilogy change (from 'context' to 'host'). TEST=some existing unit tests apply BUG=none Review URL: http://codereview.chromium.org/170003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24022 0039d316-1c4b-4281-b951-d872f2087c98