summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fully connect the dots between workers and appcache resource loading.michaeln@chromium.org2010-05-273-0/+25
| | | | | | | | | | | | | | | | | | | | | | | * Split WorkerService CreateWorker into distinct methods for 'shared' vs 'dedicated' workers. * Include additional appcache params in WorkerService CreateSharedWorker and CreateDedicatedWorker methods. * Store those additional params in WorkerInstance object. * Pass those additional params to the worker process. * Use those additional params when initiating the appcache host for the worker when calling SelectCacheForWorker and SelectCacheForSharedWorker. * Add browser process message handlers and dispatching for the SelectCacheForWorker and SelectCacheForSharedWorker IPC messages. * Runtime enable the appcache feature in the worker processes. BUG=39368 TEST=manual for now, but i need to create layout tests for this Review URL: http://codereview.chromium.org/2238001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48441 0039d316-1c4b-4281-b951-d872f2087c98
* Provide more info to the renderer process in appcache progress events.michaeln@chromium.org2010-05-2511-65/+196
| | | | | | | | | BUG=39370 TEST= yes, updated unittests Review URL: http://codereview.chromium.org/2166006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48197 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a racey refcounting bug.michaeln@chromium.org2010-05-211-0/+1
| | | | | | | | | BUG=44485 TEST=tools/valgrind/chrome_tests.sh --tool=tsan -t test_shell --gtest_filter='AppCacheStorage*' Review URL: http://codereview.chromium.org/2109012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47967 0039d316-1c4b-4281-b951-d872f2087c98
* Finally getting to the appcache parts instead of all of this webkitApi/ipc ↵michaeln@chromium.org2010-05-207-53/+237
| | | | | | | | | | | plumbing craziness. BUG=39368 TEST=new unittests Review URL: http://codereview.chromium.org/2121002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47844 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache*Test: do not use ScopedRunnableMethodFactory from multiple threads.mattm@chromium.org2010-05-195-176/+183
| | | | | | | | | | | The event_ signaling should already prevent the testcase from being deleted before the test is done, so we can just post the tasks directly. BUG=24715 TEST=tools/valgrind/chrome_tests.sh --tool=tsan -t test_shell --gtest_filter='AppCache*' Review URL: http://codereview.chromium.org/2121005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47605 0039d316-1c4b-4281-b951-d872f2087c98
* Define two new IPC messages to initialize an appcache for a shared worker or ↵michaeln@chromium.org2010-05-131-2/+9
| | | | | | | | | | | a dedicated worker. There is no callsite for sending these messages yet, and there are no handlers for them either. BUG=39368 TEST=nothing to test yet Review URL: http://codereview.chromium.org/2037013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47165 0039d316-1c4b-4281-b951-d872f2087c98
* Pass HttpRequestHeaders to URLRequest::SetExtraRequestHeaders().willchan@chromium.org2010-05-071-8/+7
| | | | | | | | BUG=22588 Review URL: http://codereview.chromium.org/1998008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46752 0039d316-1c4b-4281-b951-d872f2087c98
* Use net::HttpRequestHeaders instead of std::string in URLRequest and friends.willchan@chromium.org2010-05-061-18/+12
| | | | | | | | BUG=22588 Review URL: http://codereview.chromium.org/1998001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46612 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Add support for a dedicated cache thread.rvargas@google.com2010-04-291-1/+3
| | | | | | | | | | | | This is an interface-only change, nothing is really moving to another thread yet. BUG=26730 TEST=none Review URL: http://codereview.chromium.org/983007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45974 0039d316-1c4b-4281-b951-d872f2087c98
* Enable -Werror on Linux and Win for src/webkit/tony@chromium.org2010-04-211-1/+3
| | | | | | | | BUG=21140 Review URL: http://codereview.chromium.org/1749001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45157 0039d316-1c4b-4281-b951-d872f2087c98
* Indicate in the tab UI if appcache creation was blocked by privacy settings.jochen@chromium.org2010-04-0921-27/+93
| | | | | | | | | TEST=manual BUG=38362 Review URL: http://codereview.chromium.org/1600002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44079 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crashing bug.michaeln@chromium.org2010-04-071-1/+5
| | | | | | | | | BUG=40586 TEST=none Review URL: http://codereview.chromium.org/1545022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43793 0039d316-1c4b-4281-b951-d872f2087c98
* Include the appcache and database tracker databases into the sql diagnostics ↵michaeln@chromium.org2010-04-024-7/+24
| | | | | | | | | | | | 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
* Adding disabled appcaches information along with capability of kkanetkar@chromium.org2010-04-022-27/+121
| | | | | | | | | | | removing appcaches with button clicks. BUG=38463 TEST=Run chrome, navigate to about:appcache-internals, add/view/remove appcaches. Review URL: http://codereview.chromium.org/1576009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43430 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: If we can't read the existing data delete it and start over.michaeln@chromium.org2010-04-015-2/+76
| | | | | | | | | BUG=38360 TEST=some unit tests apply, but no new tests for this specifically Review URL: http://codereview.chromium.org/1562005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43371 0039d316-1c4b-4281-b951-d872f2087c98
* Appcache Manifest Parsing Rule. If the manifest's <scheme> is secure, and ↵inferno@chromium.org2010-03-302-0/+34
| | | | | | | | | | the resulting absolute URL does not have the same origin as the manifest's URL, then don't process that url. BUG=31935 TEST=ManifestParserTest.DifferentOriginUrlWithSecureScheme Review URL: http://codereview.chromium.org/1521006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43148 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling the BasicFindMainResponseInDatabase test as it crashes at times on ↵ananta@chromium.org2010-03-291-1/+2
| | | | | | | | | | | Webkit Linux. TBR=michaeln Bug=39731 Review URL: http://codereview.chromium.org/1572002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42998 0039d316-1c4b-4281-b951-d872f2087c98
* A basic implementation of information about appcache. Lists manifest files, ↵kkanetkar@chromium.org2010-03-273-0/+223
| | | | | | | | | | | time and size information. BUG=38463 TEST=Run chrome, navigate to about:appcache-internals. Review URL: http://codereview.chromium.org/1109009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42888 0039d316-1c4b-4281-b951-d872f2087c98
* Copy header files to third_party/WebKit/WebKit/chromium/public whentony@chromium.org2010-03-251-0/+7
| | | | | | | | | building upstream. This allows us to use absolute paths when building in chromium and compile upstream at the same time. Review URL: http://codereview.chromium.org/1266001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42579 0039d316-1c4b-4281-b951-d872f2087c98
* Plumbing for providing a cache thread MessageLoop to the DiskCache backend.michaeln@chromium.org2010-03-182-2/+10
| | | | | | | | | BUG=26730 TEST=none Review URL: http://codereview.chromium.org/1115002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42014 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache: Migrate to the DiskCache's async interface and use the ↵michaeln@chromium.org2010-03-1713-92/+525
| | | | | | | | | | | CacheType::APP_CACHE value. BUG=38273 TEST=existing layout tests and unit tests apply Review URL: http://codereview.chromium.org/886003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41884 0039d316-1c4b-4281-b951-d872f2087c98
* Move glue, appcache, and database targets out of webkit into gypi files.tony@chromium.org2010-03-151-0/+62
| | | | | | | | | | | We include these new gypi files from webkit.gyp (used when building within a chromium checkout) and from webkit_support.gyp (used when building from within a webkit checkout). TEST=everything still compiles Review URL: http://codereview.chromium.org/840003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41563 0039d316-1c4b-4281-b951-d872f2087c98
* There was a pre-existing bug in the AppCacheUpdateJobTest where it was notmbelshe@chromium.org2010-03-141-4/+18
| | | | | | | | | | | | | | | | closing out classes created on the IO Thread on the IO Thread. This didn't cause problems before by luck; but now it does. Have the cleanup run on a task on the IO Thread. TBR=michaeln BUG=none TEST=AppCacheUpdateJobTest. Review URL: http://codereview.chromium.org/934002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41547 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the content settings UI to the appcache.michaeln@chromium.org2010-03-059-12/+303
| | | | | | | | | | | | | * 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
* Reland 39942 - Switch NetworkChangeNotifier implementations to use ObserverList.willchan@chromium.org2010-02-251-7/+1
| | | | | | | | | Fixed build problem with database_tracker.(cc|h). BUG=36590 Review URL: http://codereview.chromium.org/660039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39983 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39942 - Switch NetworkChangeNotifier implementations to use ObserverList.willchan@chromium.org2010-02-241-1/+7
| | | | | | | | | | | | | Fix up observer list so we can use FOR_EACH_OBSERVER when check_empty is set. Clean up the ObserverList API a bit, replacing GetElementAt() with HasObserver() and Clear(). BUG=36590 Review URL: http://codereview.chromium.org/652205 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/661029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39945 0039d316-1c4b-4281-b951-d872f2087c98
* Switch NetworkChangeNotifier implementations to use ObserverList.willchan@chromium.org2010-02-241-7/+1
| | | | | | | | | | Fix up observer list so we can use FOR_EACH_OBSERVER when check_empty is set. Clean up the ObserverList API a bit, replacing GetElementAt() with HasObserver() and Clear(). BUG=36590 Review URL: http://codereview.chromium.org/652205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39942 0039d316-1c4b-4281-b951-d872f2087c98
* Keep track of appcache creation and last access times.michaeln@chromium.org2010-02-2310-60/+165
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/630009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39765 0039d316-1c4b-4281-b951-d872f2087c98
* Pulled out Callback code into base/callback.h. This is the first step ↵akalin@chromium.org2010-02-194-1/+4
| | | | | | | | | | | | | towards redoing the Callback interfaces. Added and removed includes as needed. BUG=35223 TEST=trybots Review URL: http://codereview.chromium.org/646061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39419 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce an AppCachePolicy interface that allows the containing browser to ↵michaeln@chromium.org2010-02-179-21/+307
| | | | | | | | | | | 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
* Couple of small AppCache update job modsmichaeln@chromium.org2010-02-121-3/+9
| | | | | | | | | | | | | 1) Fix a bug with failing to deliver the ERROR event in some cases. 2) Use a larger IO buffer to improve download performance. BUG=none TEST=manual Review URL: http://codereview.chromium.org/596078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38913 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Disable flaky test_shell_test"mpcomplete@chromium.org2010-02-091-2/+1
| | | | | | | | | | | This reverts commit 06d65042f11f082ba49c42f8a5e9fef17cadb80a. TBR=michaeln BUG=35032 Review URL: http://codereview.chromium.org/598002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38482 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Reduce header dependencies in webkitphajdan.jr@chromium.org2010-02-0912-32/+53
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/582015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38461 0039d316-1c4b-4281-b951-d872f2087c98
* Disable flaky test_shell_testmpcomplete@chromium.org2010-02-091-1/+2
| | | | | | | | | | AppCacheStorageImplTest.BasicFindMainFallbackResponseInDatabase BUG=35032 Review URL: http://codereview.chromium.org/587004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38436 0039d316-1c4b-4281-b951-d872f2087c98
* linux: build with -Wextraevan@chromium.org2010-02-051-1/+1
| | | | | | | | | | | | 95% of this is removing "const" from return types, but turning this on found one bug! (A "for" loop that expected its iterator to go negative but which was using an unsigned type.) BUG=34160 Review URL: http://codereview.chromium.org/570012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38266 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a refcounting memory bug... take 2.michaeln@chromium.org2010-01-302-9/+15
| | | | | | | | | BUG=none TEST=existing tests apply + valgrind Review URL: http://codereview.chromium.org/552236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37572 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 37466 - Fix a refcounting memory bug.viettrungluu@chromium.org2010-01-291-12/+10
| | | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/552222 TBR=michaeln@chromium.org, victorw@chromium.org Review URL: http://codereview.chromium.org/556067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37469 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a refcounting memory bug.michaeln@chromium.org2010-01-291-10/+12
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/552222 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37466 0039d316-1c4b-4281-b951-d872f2087c98
* Switch on socket late binding - Take 2.willchan@chromium.org2010-01-271-10/+16
| | | | | | | | | | | | | | | Re-enable socket late binding. The mac valgrind errors happened due to threading bugs in test_shell_tests. The ui thread would TearDown() the test object, which deleted the TestURLRequestContext, which eventually deletes the TCPClientSocketPool, which deletes its ConnectJobs. However, those ConnectJobs might be running simultaneously on the io thread. Therefore, we have a race condition. This change fixes that. Histograms for the 4.0.266.0 dev channel release indicate the following changes for late binding: (a) Net.TCPSocketType shows a decrease (from 41.85% to 39.29%) in used of newly connected sockets. Part of this decrease is due to using previously used sockets more often (increase from 58.15% to 58.53%), but is primarily due to being able to use sockets that were connected, but not immediately handed over to a socket request (increased from 0 [not supported without late binding] to 2.18%). (b) Net.SocketIdleTimeBeforeNextUse_ReusedSocket indicates that reused sockets are getting used more quickly than before, with a decrease of mean idle time from 11.65 seconds to 11.34 seconds. (c) Net.Transaction_Connected_Under_10 indicates shows that the mean for time until the first byte of the transaction response decreased from 1585ms to 1481ms. The code change deletes the old non socket late binding code paths, cleaning up the code significantly. It also deletes duplicated tests in ClientSocketPoolBase which covered both pathways. A TCPClientSocketPool test had to be updated as well. BUG=http://crbug.com/30354. Review URL: http://codereview.chromium.org/549093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37311 0039d316-1c4b-4281-b951-d872f2087c98