summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
Commit message (Collapse)AuthorAgeFilesLines
...
* base: Get rid of 'using' declaration of StringAppendF.tfarina@chromium.org2010-11-151-4/+4
| | | | | | | | | | | Update the callers to append base:: in the calls to StringAppendF. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4974001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66116 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for WKBug 47000: a failure mode given bad content (in an unlikely form). ↵michaeln@chromium.org2010-11-0318-42/+149
| | | | | | | | | | | | 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
* Convert implicit scoped_refptr constructor calls to explicit ones, part 2thakis@chromium.org2010-11-022-5/+9
| | | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2826041 I then did quite a bit of manual editing to fix style issues. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64798 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 1thakis@chromium.org2010-11-0112-119/+119
| | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
* Convert LOG(INFO) to VLOG(1) - webkit/.pkasting@chromium.org2010-10-193-11/+11
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3822006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63001 0039d316-1c4b-4281-b951-d872f2087c98
* Move Stats, histograms, and field trial into a metrics subdirectory of base andbrettw@chromium.org2010-10-141-1/+1
| | | | | | | | | put them in the base namespace. TEST=it compiles BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62510 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to ↵erg@google.com2010-09-3016-27/+100
| | | | | | | | | | | | | | 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
* webkit: Append base:: in the StringPrintf calls.tfarina@chromium.org2010-09-294-23/+30
| | | | | | | | | | | (Note: This is a TODO in string_util.h) BUG=None TEST=None Review URL: http://codereview.chromium.org/3404027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60885 0039d316-1c4b-4281-b951-d872f2087c98
* Be a little more defensive when encoutering missing appcache entries, the ↵michaeln@chromium.org2010-08-252-4/+12
| | | | | | | | | | | handler that discovers a missing entry will not attempt to intercept anything else. BUG=50657 TEST=none Review URL: http://codereview.chromium.org/3177032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57395 0039d316-1c4b-4281-b951-d872f2087c98
* When an individual entry is lost from the appache's diskcache, attempts to ↵michaeln@chromium.org2010-08-243-5/+17
| | | | | | | | | | | load that resource will fallthru to the network instead of promptly failing. See bug 50657. This is just a first step, a repair step will follow on in a future change. BUG=50657 TEST=none Review URL: http://codereview.chromium.org/3187017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57217 0039d316-1c4b-4281-b951-d872f2087c98
* Convert FormatBytes to string16.evan@chromium.org2010-08-191-1/+1
| | | | | | | | | | I considered ASCII, but it's producing what is intended to be a human-readable string. For example, in theory the "bytes/s" annotation could be localized into a language where the "b" is non-ASCII. Review URL: http://codereview.chromium.org/3107021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56771 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unnecessary STL #includes from src/webkit.viettrungluu@chromium.org2010-08-192-3/+2
| | | | | | | | | 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
* Revert "Convert FormatBytes to string16."evan@chromium.org2010-08-181-1/+1
| | | | | | This reverts commit r56603. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56608 0039d316-1c4b-4281-b951-d872f2087c98
* Convert FormatBytes to string16.evan@chromium.org2010-08-181-1/+1
| | | | | | | | | | I considered ASCII, but it's producing what is intended to be a human-readable string. For example, in theory the "bytes/s" annotation could be localized into a language where the "b" is non-ASCII. Review URL: http://codereview.chromium.org/3107021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56603 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the FLAKY attribute from ↵michaeln@chromium.org2010-08-171-1/+1
| | | | | | | | | | | AppCacheUpdateJobTest.MasterEntryBadManifest. A lot has changed since then. BUG=50657 TEST=AppCacheUpdateJobTest.MasterEntryBadManifest Review URL: http://codereview.chromium.org/3183012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56275 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: some more FRIEND_TEST_ALL_PREFIXESphajdan.jr@chromium.org2010-08-162-13/+19
| | | | | | | | | TEST=none BUG=44549 Review URL: http://codereview.chromium.org/3161021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56253 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Start cleaning up net/erg@google.com2010-08-115-0/+5
| | | | | | | | | | | | url_request.h and http_response_info.h are some of the most included headers from net/ in chrome. Do what forward declaration we can in those headers. BUG=none TEST=none Review URL: http://codereview.chromium.org/3150003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55780 0039d316-1c4b-4281-b951-d872f2087c98
* Provide a profile.GetAppCacheService() accessor and add two helper methods ↵michaeln@chromium.org2010-08-111-1/+2
| | | | | | | | | | | to ChromeAppCacheService to override the default quota for an origin. BUG=49993 TESTS=existing tests apply Review URL: http://codereview.chromium.org/2819091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55773 0039d316-1c4b-4281-b951-d872f2087c98
* Sending renderer notification when update job finishes (Used to notify cache ↵kkanetkar@chromium.org2010-08-052-15/+33
| | | | | | | | | | | | | | complete). OnCacheSelected() event caches appcache info in appcache host. This info is returned for appcache inspection by devtools. BUG = None TEST = Manual Review URL: http://codereview.chromium.org/3074015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55101 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Provide a way to override the default quota for an origin. The ↵michaeln@chromium.org2010-08-044-5/+92
| | | | | | | | | | | intent is to use this to support the 'unlimited_storage' privilege of Chrome Applications. BUG=49993 TEST=AppCacheStorageImplTest.FailStoreGroup Review URL: http://codereview.chromium.org/3083014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54949 0039d316-1c4b-4281-b951-d872f2087c98
* Undo in memory changes made by an update job if the commit to disk fails. ↵michaeln@chromium.org2010-08-0311-39/+172
| | | | | | | | | | Provide a more clear error message when the commit fails due to exceeding the quota. TEST=MasterEntryFailStoreNewestCacheTest BUG=50985 Review URL: http://codereview.chromium.org/2836075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54667 0039d316-1c4b-4281-b951-d872f2087c98
* Even more FRIEND_TEST_ALL_PREFIXES, now like in webkitphajdan.jr@chromium.org2010-08-025-31/+36
| | | | | | | | | TEST=none BUG=44549 Review URL: http://codereview.chromium.org/3078014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54591 0039d316-1c4b-4281-b951-d872f2087c98
* Move the number conversions from string_util to a new file.brettw@chromium.org2010-07-301-4/+4
| | | | | | | | | | | | | Use the base namespace in the new file. Update callers. I removed all wstring variants and also the string->number ones that ignore the return value. That encourages people to write code and forget about error handling. TEST=included unit tests BUG=none Review URL: http://codereview.chromium.org/3056029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54355 0039d316-1c4b-4281-b951-d872f2087c98
* Make tests that rely on getting a temp dir exit if they don't.evan@chromium.org2010-07-281-1/+1
| | | | | | | | | It may be the case that some tests march onward with the wrong directory and then do something bad. Review URL: http://codereview.chromium.org/3033037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54024 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome side of changes required to populate appcache resource list.kkanetkar@chromium.org2010-07-2818-65/+170
| | | | | | | | | 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
* A better error message for the mime type of a manifest file being off.michaeln@chromium.org2010-07-281-4/+16
| | | | | | | | | BUG=none TEST=manual Review URL: http://codereview.chromium.org/3076005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53890 0039d316-1c4b-4281-b951-d872f2087c98
* Put minimal appcache info in the netlog.michaeln@chromium.org2010-07-235-16/+33
| | | | | | | | | BUG=49854 TEST=manual Review URL: http://codereview.chromium.org/2847068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53551 0039d316-1c4b-4281-b951-d872f2087c98
* Random bits of header and whitespace cleanup.thestig@chromium.org2010-07-233-1/+12
| | | | | | | | BUG=none TEST=noe Review URL: http://codereview.chromium.org/3062003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53437 0039d316-1c4b-4281-b951-d872f2087c98
* Make conditional requests when updating the appcache.michaeln@chromium.org2010-07-213-88/+172
| | | | | | | | | TEST=altered existing tests to also cover this case BUG=49548 Review URL: http://codereview.chromium.org/3033003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53230 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: manifest attribute is ignored when navigating via POST (form ↵michaeln@chromium.org2010-07-202-14/+24
| | | | | | | | | | | | submit) that results in a 302 to GET the page to load. BUG=49202 TEST=manual Review URL: http://codereview.chromium.org/2806059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53088 0039d316-1c4b-4281-b951-d872f2087c98
* New javascript console logging related to the appcache.michaeln@chromium.org2010-07-1412-81/+156
| | | | | | | | | | | | | * Log an error message when an update job results in an error. * Log info messages for progress events and other update status changed events. * Consistently use "Application Cache" in the console messages. TEST=existing unit tests apply for functional correctness, manual testing to see the new console output BUG=none Review URL: http://codereview.chromium.org/2910007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52270 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r52072. Pass notifications to the browser on access to the appcache ↵jochen@chromium.org2010-07-1213-20/+36
| | | | | | | | | | | | main resource manifest. BUG=45230 TEST=browser_tests TBR=vandebo Review URL: http://codereview.chromium.org/2980001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52074 0039d316-1c4b-4281-b951-d872f2087c98
* Failed compile on Chromium builder dbgvandebo@chromium.org2010-07-1213-36/+20
| | | | | | | | | | | | | | Revert 52072 - Pass notifications to the browser on access to the appcache main resource manifest. BUG=45230 TEST=browser_tests Review URL: http://codereview.chromium.org/2808046 TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/2925008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52073 0039d316-1c4b-4281-b951-d872f2087c98
* Pass notifications to the browser on access to the appcache main resource ↵jochen@chromium.org2010-07-1213-20/+36
| | | | | | | | | | | manifest. BUG=45230 TEST=browser_tests Review URL: http://codereview.chromium.org/2808046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52072 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a regression with satisfying range requests out of the appcache and add ↵michaeln@chromium.org2010-07-033-6/+79
| | | | | | | | | | | a unit_test. TEST=AppCacheURLRequestJobTest.DeliverPartialResponse BUG=none Review URL: http://codereview.chromium.org/2876040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51585 0039d316-1c4b-4281-b951-d872f2087c98
* Minor AppCache modsmichaeln@chromium.org2010-06-303-28/+24
| | | | | | | | | | | | | | * Add some more logging to the console window for when a cache is first created and when a master entry is added. * Relocate the code that generates the log message for when a document is loaded from an appcache to the browser process. * Use a Singleton<T> instead of a static global for an IDMap<T> used in child processes. * Call the recently added webkit API for reporting progress events. BUG=39370,13685 TEST=some existing automated tests apply, manual tests for the console logging Review URL: http://codereview.chromium.org/2877005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51274 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Output some information to the javascript console.michaeln@chromium.org2010-06-254-7/+30
| | | | | | | | 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
* Fix a bug being unable to remove appcaches via chrome:appcache-internals if ↵michaeln@chromium.org2010-06-251-1/+2
| | | | | | | | | | | the manifest url contains special characters like '?' or '='. BUG=none TEST=manual Review URL: http://codereview.chromium.org/2806025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50795 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: add plumbing to deliver logging messages to the renderer process. ↵michaeln@chromium.org2010-06-189-1/+39
| | | | | | | | These messages will be plumbed thru to the console output for the page associated with 'host_id'.BUG=13685TEST=none Review URL: http://codereview.chromium.org/2861007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50197 0039d316-1c4b-4281-b951-d872f2087c98
* Add DISABLE_RUNNABLE_METHOD_REFCOUNT to make disabling refcounts in ↵ajwong@chromium.org2010-06-165-31/+7
| | | | | | | | | | | RunnableMethods easier. BUG=none TEST=none Review URL: http://codereview.chromium.org/2830006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49887 0039d316-1c4b-4281-b951-d872f2087c98
* TTF: Enable disabled test: ↵vandebo@chromium.org2010-06-151-2/+1
| | | | | | | | | | | AppCacheStorageImplTest.BasicFindMainResponseInDatabase TEST=seems to run ok now BUG=39731 Review URL: http://codereview.chromium.org/2828006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49851 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Use a dedicated thread for the disk cache.rvargas@google.com2010-06-079-22/+31
| | | | | | | | | | 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
* Reapply 49081: AppCache: Use a MockHttpServer instead of starting a seperate ↵michaeln@chromium.org2010-06-071-117/+234
| | | | | | | | | | | http server for update job unittests. This should reduce flakiness and timing variance and the total time it takes to conduct these tests. BUG=45664 TEST=yes Review URL: http://codereview.chromium.org/2662006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49088 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49081 - AppCache: Use a MockHttpServer instead of starting a seperate ↵michaeln@google.com2010-06-071-232/+119
| | | | | | | | | | | | | | | http server for update job unittests. This should reduce flakiness and timing variance and the total time it takes to conduct these tests. BUG=45664 TEST=yes Review URL: http://codereview.chromium.org/2624003 TBR=michaeln@chromium.org Review URL: http://codereview.chromium.org/2669003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49084 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Use a MockHttpServer instead of starting a seperate http server ↵michaeln@chromium.org2010-06-0725-179/+232
| | | | | | | | | | | | for update job unittests. This should reduce flakiness and timing variance and the total time it takes to conduct these tests. BUG=45664 TEST=yes Review URL: http://codereview.chromium.org/2624003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49081 0039d316-1c4b-4281-b951-d872f2087c98
* Make HostResolver NonThreadSafe and not thread safe refcounted.willchan@chromium.org2010-06-031-12/+34
| | | | | | | | | | Required making SyncHostResolverBridge not use RefCountedThreadSafe. I refactored the innards to have a thread safe refcounted Core implementation. BUG=45298 Review URL: http://codereview.chromium.org/2122015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48867 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix to avoid crashing in unit tests when HTTPTestServer::CreateServer ↵michaeln@chromium.org2010-06-021-12/+13
| | | | | | | | | | | returns NULL. BUG=45664 TEST=none Review URL: http://codereview.chromium.org/2501002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48764 0039d316-1c4b-4281-b951-d872f2087c98
* Disable a crashing test.estade@chromium.org2010-06-021-1/+8
| | | | | | | | | | | | Crashing on the mac webkit release bot. BUG=45664 TEST=tree goes green TBR=thakis Review URL: http://codereview.chromium.org/2471007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48740 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing AutoReset to be a template.gspencer@chromium.org2010-06-011-1/+1
| | | | | | | | | | | I've run into a couple of times this week when I needed one of these, for two different types besides bool. Time to fix the TODO. TEST=trybots FTW, and built locally. BUG=none Review URL: http://codereview.chromium.org/2394001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48644 0039d316-1c4b-4281-b951-d872f2087c98