summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Introduce MessagePump to represent the native message pump used to drive adarin@google.com2008-08-1537-979/+1268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageLoop. A MessageLoop now has a MessagePump. This will make it possible to port the MessagePump interface to other platforms as well as to use an IO completion port for our worker threads on Windows. Currently, there is only MessagePumpWin, which attempts to preserve the pre-existing behavior of the MessageLoop. API changes to MessageLoop: 1. MessageLoop::Quit means return from Run when the MessageLoop would otherwise wait for more work. 2. MessageLoop::Quit can no longer be called outside the context of an active Run call. So, things like this: MessageLoop::current()->Quit(); MessageLoop::current()->Run(); are now: MessageLoop::current()->RunAllPending(); 3. MessageLoop::Quit can no longer be called from other threads. This means that PostTask(..., new MessageLoop::QuitTask()) must be used explicitly to Quit across thread boundaries. 4. No protection is made to deal with nested MessageLoops involving watched objects or APCs. In fact, an assertion is added to flag such cases. This is a temporary measure until object watching and APC facilities are removed in favor of a MessagePump designed around an IO completion port. As part of this CL, I also changed the automation system to use an IPC::ChannelProxy instead of an IPC::Channel. This moves the automation IPC onto Chrome's IO thread where it belongs. I also fixed some abuses of RefCounted in the AutomationProvider class. It was deleting itself in some cases! This led to having to fix the ownership model for AutomationProvider, which explains the changes to AutomationProviderList and so on. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@928 0039d316-1c4b-4281-b951-d872f2087c98
* Another string update.mal@google.com2008-08-155-9/+9
| | | | | | | | | | These are the latest. Reggie thinks there is a problem with tc, and that it's missing an upload of 500 strings for Arabic... so there might be one more coming. TBR= tc@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@926 0039d316-1c4b-4281-b951-d872f2087c98
* more bustage fixesdarin@google.com2008-08-151-2/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@925 0039d316-1c4b-4281-b951-d872f2087c98
* rollback r922 to fix windows bustagedarin@google.com2008-08-152-93/+93
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@924 0039d316-1c4b-4281-b951-d872f2087c98
* Unify all of the build settings, and tweak a couple. Set as many things as ↵mmentovai@google.com2008-08-152-648/+385
| | | | | | possible per project, not per target. Make base_unittests link with libbase.a instead of compiling everything separately in each target. Sort everything so files are easier to find and to reduce merge conflicts. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@923 0039d316-1c4b-4281-b951-d872f2087c98
* Fix more compiler warnings.darin@google.com2008-08-157-109/+108
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@922 0039d316-1c4b-4281-b951-d872f2087c98
* To pass string_util_unittest, we need the ICU data file. To get the ICU ↵evanm@google.com2008-08-1512-20/+197
| | | | | | data file, we need some of PathService, which brings along with it a bunch of other needed functions. So here are a bunch of stubs, along with another file's worth of passing tests. (Based on a patch from Dean.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@921 0039d316-1c4b-4281-b951-d872f2087c98
* Make theme change notifications for the renderer originate from the ↵beng@google.com2008-08-1512-37/+26
| | | | | | | | | RenderWidgetHostHWND, not the frame. B=1326392 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@918 0039d316-1c4b-4281-b951-d872f2087c98
* Make more cross-platformpinkerton@google.com2008-08-151-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@917 0039d316-1c4b-4281-b951-d872f2087c98
* Delete the buildbot pylibs, this is not used.nsylvain@google.com2008-08-151503-239016/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@916 0039d316-1c4b-4281-b951-d872f2087c98
* Get googleurl and net to build on linux so we can parallelize even more. ↵tc@google.com2008-08-154-184/+208
| | | | | | This builds an empty net_unittests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@915 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the binary bz2 to have LF and force google.txt totc@google.com2008-08-142-1/+19
| | | | | | | | | | have LF because I can't seem to get svn to check in the right version with CR. TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@914 0039d316-1c4b-4281-b951-d872f2087c98
* Now force it back to CR for everyone.tc@google.com2008-08-141-19/+1
| | | | | | | TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@913 0039d316-1c4b-4281-b951-d872f2087c98
* Force the eol style to LF so we always get the CR character.tc@google.com2008-08-141-1/+19
| | | | | | | TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@912 0039d316-1c4b-4281-b951-d872f2087c98
* Fix eol style by deleting this file and re-adding.tc@google.com2008-08-140-0/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@911 0039d316-1c4b-4281-b951-d872f2087c98
* Force the line ending on this test data file to be CR. Thetc@google.com2008-08-141-19/+1
| | | | | | | | test for this compares this file to a bzip2'ed copy of the file. The bzip2'ed copy is based on there being a CR so force this to be the case on linux as well. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@910 0039d316-1c4b-4281-b951-d872f2087c98
* Initial check-in for the Coverage class. This checkin includes methods to ↵niranjan@google.com2008-08-141-0/+195
| | | | | | | | setup and teardown all that is needed measuring code coverage (instrumenting binaries, starting/stopping counters, etc). Next step is to modify the test runners to make use of this class. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@909 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the system menu in new frames.erg@google.com2008-08-148-1/+139
| | | | | | BUG=1319684 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@908 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that the default download directory exists when thepaulg@google.com2008-08-143-0/+13
| | | | | | | | DownloadManager is initialized. BUG=1324355 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@907 0039d316-1c4b-4281-b951-d872f2087c98
* Update the comment for OnObjectSignaled.wtc@google.com2008-08-142-7/+21
| | | | | | | | | | | | The event object for the completion of overlapped I/O is also set when WSARecv or WSASend returns 0, so we need to reset the event object in that case. Add temporary debugging code to assert that the event object is in the expected state before and after WSARecv and WSASend calls. R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@906 0039d316-1c4b-4281-b951-d872f2087c98
* Call an external command on Windows (xcopy) to install .lib files intosgk@google.com2008-08-141-1/+16
| | | | | | | | | | | | our library directory. This works around some weird Windows? Python? SCons? threading race condition where a file copied by Python code in one thread sometimes prevents it from being opened by an external command spawned in another thread (specifically the linker, leading an 1104 error), despite the fact that the copy has concluded. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@905 0039d316-1c4b-4281-b951-d872f2087c98
* git-svn-id: svn://svn.chromium.org/chrome/trunk/src@904 ↵sidchat@google.com2008-08-147-31/+170
| | | | 0039d316-1c4b-4281-b951-d872f2087c98
* Fix #ifdef parse errorpinkerton@google.com2008-08-141-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@903 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing more forward decls of enumspinkerton@google.com2008-08-141-1/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@902 0039d316-1c4b-4281-b951-d872f2087c98
* Add command_line_unittest and pr_time_test to the linux set of unittests. ↵tc@google.com2008-08-144-14/+14
| | | | | | Fix the const-ness of argv in CommandLine on posix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@901 0039d316-1c4b-4281-b951-d872f2087c98
* If a Window is created with specified bounds, make sure its sized to them!beng@google.com2008-08-141-1/+8
| | | | | | B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@900 0039d316-1c4b-4281-b951-d872f2087c98
* Don't assert stream_sizes_.cbBlockSize == 1. It fails withwtc@google.com2008-08-141-3/+0
| | | | | | | | some sites, and we don't need cbBlockSize to be 1. TBR=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@899 0039d316-1c4b-4281-b951-d872f2087c98
* Add 'util' to the list of libs we link into chrome.exe so it getssgk@google.com2008-08-141-2/+3
| | | | | | | the recently-moved google_update_settings.cc. TBR: tc,rahulk git-svn-id: svn://svn.chromium.org/chrome/trunk/src@897 0039d316-1c4b-4281-b951-d872f2087c98
* String updates for ko, fil, and uk.mal@google.com2008-08-143-14/+14
| | | | | | R= tc@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@896 0039d316-1c4b-4281-b951-d872f2087c98
* Allow compilation by GCC (no forward enums) and ifdef out a part of apple's ↵pinkerton@google.com2008-08-141-2/+2
| | | | | | resource loaders that we don't want when building chrome. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@895 0039d316-1c4b-4281-b951-d872f2087c98
* Add waitable_event_generic.cc, waitable_event_unittest.cc, and ↵darin@google.com2008-08-141-0/+14
| | | | | | condition_variable_posix.cc to the base_unittests target. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@894 0039d316-1c4b-4281-b951-d872f2087c98
* Some printers advertise longer printable length than the page length. Remove ↵maruel@google.com2008-08-141-3/+3
| | | | | | the DCHECK that was verifying this. I would have liked to had a buffer to accept ~5 inch of difference but at that point, the dpi is not known. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@893 0039d316-1c4b-4281-b951-d872f2087c98
* Fix utilities that were broken by at_exit changes.rvargas@google.com2008-08-142-0/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@892 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DOM*.h objC bindings from v8 build. Don't use forked ScrollView.hpinkerton@google.com2008-08-141-17/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@891 0039d316-1c4b-4281-b951-d872f2087c98
* A first stab at testing browser close behavior when there are unload listenersojan@google.com2008-08-146-0/+86
| | | | | | | | registered. There are still a ton of tests to add as listed in the TODO, but I figured it would be good to get this reviewed first before delving too far into figuring out how to deal with beforeunload dialogs. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@890 0039d316-1c4b-4281-b951-d872f2087c98
* fix unit test bustagedarin@google.com2008-08-141-4/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@887 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at implementing SSLClientSocket using Schannel.wtc@google.com2008-08-144-71/+376
| | | | | | | | | | | | Not implemented: - Handling certificate errors - Handling session renegotiation - Sending the close_notify alert - Miscellaneous TODOs and DCHECKs in the code. R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@884 0039d316-1c4b-4281-b951-d872f2087c98
* Fix JSC build Broken by r877.rahulk@google.com2008-08-141-0/+1
| | | | | | | TBR=maruel git-svn-id: svn://svn.chromium.org/chrome/trunk/src@883 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some compiler warnings, and cleanup EXPECT_EQ comparisons. Hello "U" ↵darin@google.com2008-08-144-41/+41
| | | | | | suffix :-) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@882 0039d316-1c4b-4281-b951-d872f2087c98
* Make the FindInPageController implement its own delegate interface forbrettw@google.com2008-08-149-114/+91
| | | | | | | | | | | | | RenderViewHost so that we can get rid of the pass-throughs in WebContents. I removed some redundant checks in WebContents when calling view() for render_view_host() since that internally checks the null-ness of render_view_host(). BUG=1323267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@881 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the scons build (file was moved).tc@google.com2008-08-142-1/+1
| | | | | | TBR=rahulk git-svn-id: svn://svn.chromium.org/chrome/trunk/src@880 0039d316-1c4b-4281-b951-d872f2087c98
* Add End-session handling and app modal dialog handling to BrowserView2/New ↵beng@google.com2008-08-147-8/+82
| | | | | | | | | Frames. B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@879 0039d316-1c4b-4281-b951-d872f2087c98
* Add skia and our png wrappers. png_codec_unittest and ↵tc@google.com2008-08-144-159/+162
| | | | | | image_operations_unittest pass. This gives us 70 passing unittests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@878 0039d316-1c4b-4281-b951-d872f2087c98
* Moving GoogleUpdateSettings to util. Installer as well as Chrome needs these ↵rahulk@google.com2008-08-1410-27/+20
| | | | | | | | | settings. BUG=1296800 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@877 0039d316-1c4b-4281-b951-d872f2087c98
* Remove confusing and unnecessary information (names, old project references,pamg@google.com2008-08-146-143/+11
| | | | | | | | | | | | | etc.) from jstemplate comments. Do a little trivial code compaction (strip // comments) in compile.sh. BUG=1325652 TEST=make sure about:memory and other about: pages work and don't show bad stuff in their source (ctrl-U or View Source from the Developer menu) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@876 0039d316-1c4b-4281-b951-d872f2087c98
* SCons build accommodation of renaming base\gfx\*platform*.cc to ↵sgk@google.com2008-08-141-3/+8
| | | | | | | | base\gfx\*platform*_win.cc. TBR: awalker git-svn-id: svn://svn.chromium.org/chrome/trunk/src@875 0039d316-1c4b-4281-b951-d872f2087c98
* The SHA2 files compile, and the unittests pass, now that ↵mmoss@google.com2008-08-141-3/+3
| | | | | | nspr/prcpucfg_linux.h is in, so move to the common build sections. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@874 0039d316-1c4b-4281-b951-d872f2087c98
* git-svn-id: svn://svn.chromium.org/chrome/trunk/src@873 ↵awalker@google.com2008-08-1451-218/+218
| | | | 0039d316-1c4b-4281-b951-d872f2087c98
* Update chrome strings (he only since you got the other changes lasttc@google.com2008-08-141-2/+2
| | | | | | | | night). TBR=mal git-svn-id: svn://svn.chromium.org/chrome/trunk/src@872 0039d316-1c4b-4281-b951-d872f2087c98
* bootstrap v8 js binding/header generation and putting them in a subdir so ↵pinkerton@google.com2008-08-145-17/+31
| | | | | | switching between kjs and v8 doesn't intermingle headers. Also fix v8 codegen to not have ">>" in templates, which gcc doesn't allow. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@871 0039d316-1c4b-4281-b951-d872f2087c98