summaryrefslogtreecommitdiffstats
path: root/chrome/worker
Commit message (Collapse)AuthorAgeFilesLines
* Enable message ports for workers.jam@chromium.org2009-08-065-9/+40
| | | | | | | TEST=included ui test Review URL: http://codereview.chromium.org/160576 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22653 0039d316-1c4b-4281-b951-d872f2087c98
* Enable worker layout tests after the WebKit patch to fix an assert is landed.jianli@chromium.org2009-08-061-8/+8
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/160676 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22627 0039d316-1c4b-4281-b951-d872f2087c98
* Run the DOM Storage layout tests in the UI test framework since the test ↵jorlow@chromium.org2009-08-051-275/+14
| | | | | | | | | | | | | | | shell doesn't hit very much of the new code. I still plan to write unit tests and we're still goign to enable the layout tests in test shell, but this is still a good way for us to test the full stack ASAP. Workers has used this technique for a while now. This CL factors out the layout test running code from the workers ui test and moves arounds directories a bit so not everything is in the "workers" directory. Doing this via a v8 extension is the right way to go long term, but I ran into a couple snags, so I think this is a good first step. TEST=none BUG=none Review URL: http://codereview.chromium.org/159720 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22466 0039d316-1c4b-4281-b951-d872f2087c98
* This CL is doing a bunch of Misc work to make LocalStorage data persist.jorlow@chromium.org2009-08-052-0/+7
| | | | | | | | | | | | | | | | | | | First of all, this allows WebKit clients to specify whether or not the VFS should be used. In the browser process, we never want it to be. Next, this allows WebKit clients to specify the behavior of WebKit's FileSystem code. By default, they should all be NOT_REACHED(). The browser process implements the two of these I need for LocalStorage, but it'll be really easy for the rest to be implemented as needed. Next, this adds a function that storage routines can call to ensure that lazily initialized stuff that must be initialized on the main WebKit thread is initialized. Right now, this is just used to initialize the UTF8 conversion tables, but I'm sure there'll be more overt time. Lastly, this uses the profile directory stored by webkit_context_ to derive the path LocalStorage should use. This CL also cleans up a few minor style issues as it goes. TEST=none BUG=4360 Review URL: http://codereview.chromium.org/159778 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22452 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily disable all Worker tests.dglazkov@chromium.org2009-08-041-8/+8
| | | | | | | | | | TBR=jam BUG=18409 TEST=none Review URL: http://codereview.chromium.org/159860 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22385 0039d316-1c4b-4281-b951-d872f2087c98
* Cross-process Message Port implementation.jam@chromium.org2009-08-043-0/+36
| | | | | | | | | I'm sending this first, then I'll add support to workers in another changelist to avoid making this change larger. TEST=running message port related layout tests in ui_tests Review URL: http://codereview.chromium.org/159372 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22356 0039d316-1c4b-4281-b951-d872f2087c98
* Rebaseline worker-constructor.html and enable it and other 2 tests in ↵jianli@chromium.org2009-07-301-2/+3
| | | | | | | | | | | running in UI test. BUG=none TEST=none Review URL: http://codereview.chromium.org/160402 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22073 0039d316-1c4b-4281-b951-d872f2087c98
* Disable worker-constructor.html until the WebKit side change is landed and ↵jianli@chromium.org2009-07-301-1/+1
| | | | | | | | | | | we update the rebaselined result for it. BUG=none TEST=none Review URL: http://codereview.chromium.org/160370 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22028 0039d316-1c4b-4281-b951-d872f2087c98
* Enable layout tests: worker-constructor.html and worker-script-error.html.jianli@chromium.org2009-07-281-10/+29
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/159429 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21863 0039d316-1c4b-4281-b951-d872f2087c98
* Reenable running worker UI tests.jianli@chromium.org2009-07-241-11/+0
| | | | | | | | | BUG=17572 TEST=none Review URL: http://codereview.chromium.org/159322 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21549 0039d316-1c4b-4281-b951-d872f2087c98
* The final CL for plumbing DOM Storage.jorlow@chromium.org2009-07-242-0/+16
| | | | | | | | | | | | | Add webKitClient plumbing for getting/creating storage namespaces. Add a chromium implementation for WebStorageArea and WebStorageNamespace which communicates via IPC with the dom_storage_dispatcher_host in the browser process. Flesh out the StorageAreaProxy and StorageNamespaceProxy to use the aforementioned implementations. The WebStorageArea implementation includes decently aggressive caching optimizations. There's still a lot of work to do, though. BUG=4360 TEST=none Review URL: http://codereview.chromium.org/147248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21495 0039d316-1c4b-4281-b951-d872f2087c98
* Disable worker tests for debug builds.darin@chromium.org2009-07-231-0/+11
| | | | | | | | | | BUG=17572 TEST=none TBR=levin Review URL: http://codereview.chromium.org/160029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21414 0039d316-1c4b-4281-b951-d872f2087c98
* Unrevert 21355 because the revert might be causing thensylvain@chromium.org2009-07-233-30/+11
| | | | | | | | worker tests failures. Review URL: http://codereview.chromium.org/159276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21412 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 21355 because it might be causing all the newnsylvain@chromium.org2009-07-233-11/+30
| | | | | | | | | | | | crashes on reliability. It also seems to be causing valgrind error. Original change: Switch the first thread in a child process to be the main thread, and make theIO thread be the second thread. The change is needed for plugins on mac. Review URL: http://codereview.chromium.org/159274 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21398 0039d316-1c4b-4281-b951-d872f2087c98
* Switch the first thread in a child process to be the main thread, and make ↵jam@chromium.org2009-07-233-30/+11
| | | | | | | | theIO thread be the second thread. The change is needed for plugins on mac. Review URL: http://codereview.chromium.org/155944 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21355 0039d316-1c4b-4281-b951-d872f2087c98
* Split the IPC code into ipc/agl@chromium.org2009-07-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This splits the ipc code from the common project. The 'common' project pulls in all of webkit, the v8 bindings, skia, googleurl, and a number of other projects which makes it very difficult to deal with especially for external projects wanting just to use some of Chromium's infrastructure. This puts the ipc code into its top-level ipc/ directory with a dependency only on base. The common project depends on the new ipc/ipc.gyp:ipc target so that all projects currently pulling common in to get the IPC code still have it available. This mostly follows agl's pre-gyp attempt to do this which was r13062. Known issues: - Currently a number of projects depend on chrome/chrome.gyp:common in order to use the IPC infrastructure. Rather than fixing all of these dependencies I have made common depend on ipc/ipc.gyp:ipc and added "ipc" to the include_rules section of DEPS so that checkdeps.py doesn't complain. Over time projects that need IPC should depend on the IPC project themselves and dependencies on common removed, although I don't think many projects that need IPC will be able to get away without common currently. - ipc/ipc_message_macros.h still has #include "chrome/common/..." inside of a ipc/ should not refer to files in chrome/... now. I'm not sure how to resolve this since it's really an IDE bug - the named pipe name (windows+linux) and the logging event name (all) + env variable (posix) refer explicitly to 'Chrome' which somewhat hurts the illusion of ipc/ being an independent library. I think this should be examined in a subsequent, much smaller patch. - I've eliminated the IPC.SendMsgCount counter since it was implemented in a way to create a dependency from ipc/ to chrome/common/chrome_counters. This is the same approach that r13062 took. http://codereview.chromium.org/155905 (Patch from James Robinson) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21342 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r21117 as it caused reliability failures.estade@chromium.org2009-07-213-11/+30
| | | | | | | | | | Also included in this revert: r21165, r21180, and a couple valgrind suppression edits TBR=huanr Review URL: http://codereview.chromium.org/155876 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21216 0039d316-1c4b-4281-b951-d872f2087c98
* Switch the first thread in a child process to be the main thread, and make ↵jam@chromium.org2009-07-203-30/+11
| | | | | | | | the IO thread be the second thread. The change is needed for plugins on mac. Review URL: http://codereview.chromium.org/149558 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21117 0039d316-1c4b-4281-b951-d872f2087c98
* Disable text-encoding.html from Worker http layout tests, it appears to be ↵dimich@google.com2009-07-171-1/+1
| | | | | | | | | | unreliable. BUG=16934 TEST=none TBR=sverrir@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20986 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 6- and 7-parameter IPC message macros. Replace with a struct that ↵dimich@google.com2009-07-171-3/+9
| | | | | | | | | | packs parameters. BUG=16685 TEST=none Review URL: http://codereview.chromium.org/149775 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20980 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to re-enable the http worker tests. I can't repro the 'flak' so I'm ↵dimich@google.com2009-07-171-1/+1
| | | | | | | | | | going to enable them and watch closely. BUG=16934 TEST=none Review URL: http://codereview.chromium.org/149763 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20974 0039d316-1c4b-4281-b951-d872f2087c98
* Disable running layout tests worker-constructor.html and ↵jianli@chromium.org2009-07-161-3/+2
| | | | | | | | | | | worker-redirect.html in UI test frameworker in preparation to checkin the fix for WebKit bug 25151 (https://bugs.webkit.org/show_bug.cgi?id=25151). I will reenable the tests once the corresponding V8 change is landed. BUG=none TEST=none Review URL: http://codereview.chromium.org/155544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20827 0039d316-1c4b-4281-b951-d872f2087c98
* Disable WorkerHttpLayoutTests which is flaky (both debug and release winxp).sverrir@chromium.org2009-07-151-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/155571 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20726 0039d316-1c4b-4281-b951-d872f2087c98
* Make workers functional on OSX and Linux.levin@chromium.org2009-07-143-5/+2
| | | | | | | | | | BUG=http://crbug.com/16664 TEST=The same tests run for Web Workers on Windows should be run on Linux and OSX. Review URL: http://codereview.chromium.org/155015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20653 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS from 45738 to 45840.dimich@google.com2009-07-142-1/+4
| | | | | | Review URL: http://codereview.chromium.org/149575 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20589 0039d316-1c4b-4281-b951-d872f2087c98
* Platform cleanup in worker_uitest.cc.phajdan.jr@chromium.org2009-07-131-4/+4
| | | | | | | | It compiles and links on Linux after this change, but doesn't pass, so I don't enable it. Review URL: http://codereview.chromium.org/149561 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20559 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the problem that the temp worker directory is not deleted if the http ↵jianli@chromium.org2009-07-081-2/+22
| | | | | | | | | | | server process is still holding it. BUG=none TEST=none Review URL: http://codereview.chromium.org/155177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20168 0039d316-1c4b-4281-b951-d872f2087c98
* Sprinkle some defensiveness into the UI tests so that they don't explode if ↵stuartmorgan@chromium.org2009-07-071-0/+4
| | | | | | | | | | the proxy doesn't respond (e.g., due to a timeout). BUG=none TEST=Hopefully the Mac valgrind bots will more reliably run all their tests (although there are likely more issues like this lurking). Review URL: http://codereview.chromium.org/149281 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20096 0039d316-1c4b-4281-b951-d872f2087c98
* Add getFileSize support to chromiumvictorw@chromium.org2009-07-032-0/+7
| | | | | | | | | | | | | | | | | The current implementation only allows getting file size if the child process has been granted permission to upload file. May need to update the policy checking code if getFileSize is needed in other cases. Here is the webkit implementation to support this: https://bugs.webkit.org/show_bug.cgi?id=26521 TEST=none BUG=9102 Review URL: http://codereview.chromium.org/131082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19866 0039d316-1c4b-4281-b951-d872f2087c98
* Add one more layout test ↵jianli@chromium.org2009-06-301-0/+1
| | | | | | | | | | | LayoutTests\http\tests\xmlhttprequest\works\close.html to run in UI test framework. BUG=none TEST=none Review URL: http://codereview.chromium.org/150057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19568 0039d316-1c4b-4281-b951-d872f2087c98
* Change to use encodeURIComponent to encode the UTF8 character in the returnedjianli@chromium.org2009-06-291-1/+1
| | | | | | | | | | | | | result. This is to make text-encoding.html work in UI test. Also removed a couple files forgot to remove during last commit. BUG=none TEST=none Review URL: http://codereview.chromium.org/150035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19517 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for ui_tests - accidental change went in.dimich@google.com2009-06-291-1/+1
| | | | | | | TBR=jianli Review URL: http://codereview.chromium.org/150043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19515 0039d316-1c4b-4281-b951-d872f2087c98
* Remove --enable-web-workers command-line switch.dimich@google.com2009-06-292-5/+1
| | | | | | | | BUG=4361 TEST=many ui/layout tests. Review URL: http://codereview.chromium.org/149114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19512 0039d316-1c4b-4281-b951-d872f2087c98
* Support running http layout tests for workers in UI test framework.jianli@chromium.org2009-06-291-36/+107
| | | | | | | | | | | | | | | BUG=none TEST=This is a UI test. Nicolas, could you please review DEPS? I added a couple of new lines to DEPS in order to fetch a copy the following directory into UI test data directory: LayoutTests/http/tests/resources LayoutTests/http/tests/workers LayoutTests/http/tests/xmlhttprequest Review URL: http://codereview.chromium.org/147125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19502 0039d316-1c4b-4281-b951-d872f2087c98
* Added stub native web worker support, including build support in preparationsehr@google.com2009-06-295-2/+339
| | | | | | | for integrating the native client build. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19479 0039d316-1c4b-4281-b951-d872f2087c98
* Add ability to start/stop http server to ui_tests. This will be used to run ↵dimich@google.com2009-06-231-0/+22
| | | | | | | | | | Workers+XHR layout tests which is impossible to run in test_shell. BUG=none TEST=none Review URL: http://codereview.chromium.org/125283 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19082 0039d316-1c4b-4281-b951-d872f2087c98
* Support running worker's fast layout tests in UI test framework.jianli@chromium.org2009-06-191-11/+212
| | | | | | | | | BUG=none TEST=This is a UI test. Review URL: http://codereview.chromium.org/131012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18846 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a max worker count of 16 per tab and 64 total. Any workers ↵jam@chromium.org2009-06-182-0/+40
| | | | | | | | created after that are queued. Review URL: http://codereview.chromium.org/125242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18763 0039d316-1c4b-4281-b951-d872f2087c98
* Switch child threads so that current() only works on the correct thread and ↵jam@chromium.org2009-06-152-3/+13
| | | | | | | | the correct process. Review URL: http://codereview.chromium.org/126086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18409 0039d316-1c4b-4281-b951-d872f2087c98
* Convert worker.vcproj to gyp generation.sgk@google.com2009-06-031-171/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/118133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17452 0039d316-1c4b-4281-b951-d872f2087c98
* Make automation proxy objects to ref_counted. That allows to process async ↵stoyan@chromium.org2009-05-281-1/+1
| | | | | | | | | | | notifications directly in channel background thread. Add support for listener-less ChannelProxy. BUG=none TEST=none Review URL: http://codereview.chromium.org/113722 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17093 0039d316-1c4b-4281-b951-d872f2087c98
* Increase timeout for worker UI tests.jianli@chromium.org2009-05-261-1/+1
| | | | | | Review URL: http://codereview.chromium.org/113862 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16926 0039d316-1c4b-4281-b951-d872f2087c98
* We need to add UI tests to test workers after we switch to ↵jianli@chromium.org2009-05-261-0/+39
| | | | | | | | | | | process-per-worker model and remove uses of V8 lockers. Due to this, we can not run any worker layout test that starts multiple workers because we load V8 instance in DLL in test shell. To cover this deficiency, we need to add UI tests to test multiple workers. BUG=12554 TEST=none Review URL: http://codereview.chromium.org/115731 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16890 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent a worker that loops forever from preventing shutdown of the worker ↵jam@chromium.org2009-05-212-2/+42
| | | | | | | | | process. BUG=11672 Review URL: http://codereview.chromium.org/112049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16662 0039d316-1c4b-4281-b951-d872f2087c98
* Forgot file with r16454jam@chromium.org2009-05-201-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16455 0039d316-1c4b-4281-b951-d872f2087c98
* Move createWorker from WebKitClient to WebWorkerClient per your suggestion, ↵jam@chromium.org2009-05-203-7/+6
| | | | | | | | to avoid using WebKitClient outside the main thread. Review URL: http://codereview.chromium.org/115103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16454 0039d316-1c4b-4281-b951-d872f2087c98
* Move WebKit API to src/webkit/api.darin@chromium.org2009-05-104-7/+7
| | | | | | | | R=dglazkov Review URL: http://codereview.chromium.org/113186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15739 0039d316-1c4b-4281-b951-d872f2087c98
* Move win_util.h from common to app.ben@chromium.org2009-05-081-1/+0
| | | | | | | | http://crbug.com/11387 Review URL: http://codereview.chromium.org/113169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15694 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome side to handle changing CreateWebWorker to createWorker.darin@chromium.org2009-05-052-2/+2
| | | | | | | | R=jam Review URL: http://codereview.chromium.org/109028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15333 0039d316-1c4b-4281-b951-d872f2087c98
* Run workers in separate processes.jam@chromium.org2009-05-013-0/+9
| | | | | | Review URL: http://codereview.chromium.org/99016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15098 0039d316-1c4b-4281-b951-d872f2087c98