summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Review URL: http://codereview.chromium.org/10610dsh@google.com2008-11-121-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5314 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the ability for save dialogs to take a default extension.sky@google.com2008-11-122-0/+79
| | | | | | | | | BUG=4287 TEST=see bug Review URL: http://codereview.chromium.org/10621 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5304 0039d316-1c4b-4281-b951-d872f2087c98
* Drop the wakeup pipe completely and use the builtin glib wakeup.deanm@chromium.org2008-11-122-39/+3
| | | | | | Review URL: http://codereview.chromium.org/10848 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5296 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite the glib UI pump. Although the previous pump was correct in terms ↵deanm@chromium.org2008-11-122-258/+130
| | | | | | | | of test coverage, it was mis-handling the concept of idle work. This meant we were effectively polling the pump, causing full CPU usage. The new pump is greatly simplified, and follows the pattern used on Windows. All tests still pass. Review URL: http://codereview.chromium.org/10833 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5278 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent crash due to DIB allocation failure joshia@google.com2008-11-122-9/+10
| | | | | | | | | | | | | Change the way we capture tab thumbnail images so that the capturing code can deal with failure. BUG=3795 Review URL: http://codereview.chromium.org/9717 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5244 0039d316-1c4b-4281-b951-d872f2087c98
* Force the line endings on .sln files to be CRLF.tc@google.com2008-11-121-103/+103
| | | | | | | TBR=pamg Review URL: http://codereview.chromium.org/10619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5234 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some Windows-specific stuff from RenderProcessHost by having callers ↵brettw@google.com2008-11-113-5/+6
| | | | | | | | get the process handle and PID directly from the corresponding Process object. Review URL: http://codereview.chromium.org/10608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5219 0039d316-1c4b-4281-b951-d872f2087c98
* Cache the GdkSkia object in PlatformContextSkia so that we aren't creatingagl@chromium.org2008-11-111-2/+0
| | | | | | | | | and deleting them for every widget drawn. Review URL: http://codereview.chromium.org/9757 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5195 0039d316-1c4b-4281-b951-d872f2087c98
* * Revert "Por rt flush_cache tool."agl@chromium.org2008-11-114-63/+0
| | | | | | | | | This reverts commit 3bd600b37c5ee613c004c84736ee3cb69434562a. Review URL: http://codereview.chromium.org/9774 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5184 0039d316-1c4b-4281-b951-d872f2087c98
* Port flush_cache tool.agl@chromium.org2008-11-114-0/+63
| | | | | | | | | | BUG=4160 Review URL: http://codereview.chromium.org/9639 Patch from Paweł Hajdan jr. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5182 0039d316-1c4b-4281-b951-d872f2087c98
* make sure we match all the tests and files that linux has running. We were ↵pinkerton@google.com2008-11-112-2/+13
| | | | | | | | never building process_posix, but now the newly added unit tests use it. Review URL: http://codereview.chromium.org/10221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5175 0039d316-1c4b-4281-b951-d872f2087c98
* Added CreateTemporaryFileName that takes a FilePath argument.estade@chromium.org2008-11-115-18/+32
| | | | | | Review URL: http://codereview.chromium.org/9752 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5142 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up some confusing naming of ClipboardLock. It isn't a lock, and the ↵deanm@chromium.org2008-11-101-44/+38
| | | | | | | | way it was written previous made it seem like it was supposed to be some sort of lock. It was just to manage acquiring the clipboard (which involves some Windows clipboard lock). Review URL: http://codereview.chromium.org/9745 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5122 0039d316-1c4b-4281-b951-d872f2087c98
* NO CODE CHANGE. Update string_piece.h to new include style, and remove ↵deanm@chromium.org2008-11-083-6/+3
| | | | | | | | Ben's trailing whitespace. Really just want a buildbot run :\ Review URL: http://codereview.chromium.org/9730 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5075 0039d316-1c4b-4281-b951-d872f2087c98
* Dramatically improve the link time in release mode. Today's MC Hammer Xcodemark@chromium.org2008-11-071-0/+16
| | | | | | | | Voodoo lesson: don't use the slow dsymutil utility; instead, make a "fake" .dSYM that contains the original unstripped Mach-O file. Review URL: http://codereview.chromium.org/9659 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5042 0039d316-1c4b-4281-b951-d872f2087c98
* Switch MessagePumpForIO to use completion ports on Windows.rvargas@google.com2008-11-075-617/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup the separation between MessagePumpForUI and MessagePumpForIO, and convert the latter to use Completion Ports instead of MsgWaitForMultipleobjects to sleep when idle. Remove all traces of Windows messages from MessagePumpForIO, remove the transitional API of completion port notifications and remove WatchObject API. Modify all callers of RegisterIOHandler so that they are no longer using RegisterIOContext, and also handle properly the new semantics of completion ports (notifications even when the IO completes immediately). Add a new interface to allow proper cleanup of disk cache (to replace code that was waiting for pending APCs from the destructor). Add a way for the message pump to perform cleanup of abandoned IO. BUG=B/1344358, 3497, 3630 TESt=unit tests R=darin Review URL: http://codereview.chromium.org/8156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5021 0039d316-1c4b-4281-b951-d872f2087c98
* Make PlatformCanvasLinux match up with recent changes in the Windows one, ↵brettw@google.com2008-11-072-3/+8
| | | | | | | | which is able to report allocation failures. Review URL: http://codereview.chromium.org/9510 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4991 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Linux build bustage by making the ImageBufferSkia code compilable on all ↵brettw@google.com2008-11-071-2/+5
| | | | | | | | Skia platforms. I do this by making the calling of PlatformCanvas.initialize() able to be the same by using an evil default parameter. Review URL: http://codereview.chromium.org/9695 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4990 0039d316-1c4b-4281-b951-d872f2087c98
* Adds import/export of bookmarks to bookmarks.html file.sky@google.com2008-11-071-0/+14
| | | | | | | | | | | | BUG=1649 TEST=bring up bookmark manager and try out import/export from the tools menu. Note that import ALWAYS creates a new folder under the 'Other bookmarks folder' with the name of Imported (x). This is by design. Review URL: http://codereview.chromium.org/9471 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4968 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the idle timer for Linux using libxss.dsh@google.com2008-11-063-0/+66
| | | | | | | | BUG=2183 Review URL: http://codereview.chromium.org/8806 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4930 0039d316-1c4b-4281-b951-d872f2087c98
* Enabled WebFrameTest, refactored some test shell functions.estade@chromium.org2008-11-061-9/+15
| | | | | | Review URL: http://codereview.chromium.org/9652 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4916 0039d316-1c4b-4281-b951-d872f2087c98
* Make canvas code a bit more resilient to crashes.joshia@google.com2008-11-065-49/+73
| | | | | | | | | | | | | * Initialize PAINTSTRUCT to prevent crash if BeginPaint fails. * Sanitize width-height for empty bitmaps. * Return failure from initialize instead of crashing at that point. BUG=3795 Review URL: http://codereview.chromium.org/9459 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4914 0039d316-1c4b-4281-b951-d872f2087c98
* Switch from using GdkPixbuf to cairo for painting on Drawables.agl@chromium.org2008-11-062-34/+58
| | | | | | | | | | Make everything use ARGB order in registers (B.G.R.A order in memory on little-endian systems) Review URL: http://codereview.chromium.org/8227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4845 0039d316-1c4b-4281-b951-d872f2087c98
* Make assertions not display message boxes to the end user. This is causingbrettw@google.com2008-11-061-3/+7
| | | | | | | | | an infinite recursion of assertion messages during a painting error. BUG=4139 Review URL: http://codereview.chromium.org/9608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4844 0039d316-1c4b-4281-b951-d872f2087c98
* revert 9391estade@chromium.org2008-11-051-7/+34
| | | | | | Review URL: http://codereview.chromium.org/9607 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4837 0039d316-1c4b-4281-b951-d872f2087c98
* Enabled WebFrameTest, refactored some test shell functions.estade@chromium.org2008-11-051-34/+7
| | | | | | Review URL: http://codereview.chromium.org/9391 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4834 0039d316-1c4b-4281-b951-d872f2087c98
* Make better (and more efficient) use of Hammer functionalitysgk@google.com2008-11-053-8/+8
| | | | | | | | | | | | | in base, net and sandbox: * Remove by-hand Install() and Alias() calls. * Set $COMPONENT_PROGRAM_GROUPS and $COMPONENT_TEST_PROGRAM_GROUPS (with in each foo\foo.scons file) so executables get added automatically to the appropriate Alias. * Set $TESTS_DIR and $STAGING_DIR so executables get linked directly in their final resting place ($TARGET_ROOT). Review URL: http://codereview.chromium.org/9188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4805 0039d316-1c4b-4281-b951-d872f2087c98
* This CL adds the autofill UI in forms.jcampan@chromium.org2008-11-053-6/+37
| | | | | | | | | | | | When the user types text in a text field in a form, the renderer queries the browser for suggestion based on the entered text and displays the suggestions in a popup. Listeners are set on the form text field in a similar fashion than for password save. The popup showing the suggestion uses the same mechanism as the select popup. Note that a difference between the select and the autofill popup is that the autofill should not take focus, so the page still has focus and the user can still type in while it shows. The creation of the render widget was modified for that purpose so we can specify the popup should not be focused when shown. Review URL: http://codereview.chromium.org/8885 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4804 0039d316-1c4b-4281-b951-d872f2087c98
* Delete some accidental comments.estade@chromium.org2008-11-051-3/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4732 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrote the clipboard API to be more concurrent. Added a helper class to ↵estade@chromium.org2008-11-0511-326/+695
| | | | | | | | make it more foolproof. Updated all clients and unittests. Mac port by jeremy@chromium.org Review URL: http://codereview.chromium.org/9154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4719 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/8220dsh@google.com2008-11-042-5/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4698 0039d316-1c4b-4281-b951-d872f2087c98
* Spelling fix (r4652)mark@chromium.org2008-11-041-1/+3
| | | | | | Review URL: http://codereview.chromium.org/9354 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4657 0039d316-1c4b-4281-b951-d872f2087c98
* Port more of url_request_unittest.cc.dkegel@google.com2008-11-044-5/+16
| | | | | | | | Also do a little bit of the FilePath rewrite as it pertains to this test. Review URL: http://codereview.chromium.org/9074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4652 0039d316-1c4b-4281-b951-d872f2087c98
* Fix scoped_cftyperef<>::reset() to adopt the incoming CFTypeRef when themark@chromium.org2008-11-041-3/+3
| | | | | | | existing stored pointer is NULL. Review URL: http://codereview.chromium.org/9130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4646 0039d316-1c4b-4281-b951-d872f2087c98
* Turn time_mac.cc back on, with workaround for scoped_cftyperef reset bugamanda@chromium.org2008-11-042-10/+8
| | | | | | Review URL: http://codereview.chromium.org/9342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4641 0039d316-1c4b-4281-b951-d872f2087c98
* Handle time overflow more gracefully in base/time_posix.cc. Instead ofmark@chromium.org2008-11-041-5/+38
| | | | | | | | | asserting when encountering time overflow, use the most distant future or past time representation possible. This fixes assertions that occur when handling cookies that expire well in the future. Review URL: http://codereview.chromium.org/8771 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4631 0039d316-1c4b-4281-b951-d872f2087c98
* Use CreateThread instead of _beginthreadex. This should still be safe, and ↵deanm@chromium.org2008-11-041-6/+8
| | | | | | | | we'll see if it makes a noticable impact on startup time. Review URL: http://codereview.chromium.org/9059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4580 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tree breakage.erg@google.com2008-11-041-1/+4
| | | | | | | | TBR=paulg Review URL: http://codereview.chromium.org/9290 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4524 0039d316-1c4b-4281-b951-d872f2087c98
* Remove fragile check in DidProcessCrashcpu@google.com2008-11-032-5/+13
| | | | | | | | | | | | | - the numbers were out of sync with result_codes.h - can't use result_codes.h in base project so I extracted the generic part of it. Rahul: I hope I don't break installer assumptions here. Dan: don't feel obligated to review. Review URL: http://codereview.chromium.org/9012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4519 0039d316-1c4b-4281-b951-d872f2087c98
* Get url_request_unittest.cc to build on Linux.dkegel@google.com2008-11-031-1/+1
| | | | | | | | | | | See http://code.google.com/p/chromium/issues/detail?id=3661 Also change LaunchApp to check PATH, and fixed a useful gcc-4.3 warning re operator precedence. Review URL: http://codereview.chromium.org/7968 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4515 0039d316-1c4b-4281-b951-d872f2087c98
* Undisable the now not-flaky unittests!ojan@google.com2008-11-031-5/+2
| | | | | | Review URL: http://codereview.chromium.org/9264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4513 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r4473 to fix build breakage (local time zone tests failed)amanda@chromium.org2008-11-032-3/+33
| | | | | | | TBR mmentovai@chromium.org Review URL: http://codereview.chromium.org/9274 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4496 0039d316-1c4b-4281-b951-d872f2087c98
* Switch from the benighted PlatformThread to the shiny SimpleThreaddkegel@google.com2008-11-032-11/+16
| | | | | | | | | Also add a comment to explain the strange tls gyrations in SlotReturnFunction. Review URL: http://codereview.chromium.org/8972 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4481 0039d316-1c4b-4281-b951-d872f2087c98
* Add a TODO from Jar.mbelshe@google.com2008-11-031-0/+3
| | | | | | Review URL: http://codereview.chromium.org/9262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4475 0039d316-1c4b-4281-b951-d872f2087c98
* Update Mac implemention of Time to prevent problems withamanda@chromium.org2008-11-033-34/+126
| | | | | | | | | times later than the UNIX epoch 32 bit rollover in 2038 (such as cookie expirations). time_t is only 32 bits in MacOS X, so we can't just use time_posix.cc Review URL: http://codereview.chromium.org/9249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4473 0039d316-1c4b-4281-b951-d872f2087c98
* Update idle timer test to use longer intervals.mbelshe@google.com2008-11-031-33/+40
| | | | | | | | | This should increase reliability issues seen on the bbots. Review URL: http://codereview.chromium.org/9261 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4471 0039d316-1c4b-4281-b951-d872f2087c98
* Weee. More TODO(darin)s. :)ojan@google.com2008-11-031-3/+5
| | | | | | | Disabled two flaky unittests. Review URL: http://codereview.chromium.org/9258 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4468 0039d316-1c4b-4281-b951-d872f2087c98
* The base unittests were succeeding for the isolatedmbelshe@google.com2008-11-031-0/+2
| | | | | | | | | | | | | | | tests, but failed when all tests were run because some tests run without a message loop. The observer_list_threadsafe allowed AddObserver to run with null message loops. But, if you call Notify after doing so, then the notify call would attempt to use the registered "null" ptr to a message loop. This crashed, of course. Review URL: http://codereview.chromium.org/9045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4459 0039d316-1c4b-4281-b951-d872f2087c98
* Fix unit test for system monitor.mbelshe@google.com2008-11-031-0/+11
| | | | | | | | Not sure how I missed this! Review URL: http://codereview.chromium.org/9250 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4457 0039d316-1c4b-4281-b951-d872f2087c98
* quick build fix for Linuxerikkay@google.com2008-11-031-1/+1
| | | | | | | | TBR=sgk Review URL: http://codereview.chromium.org/9043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4455 0039d316-1c4b-4281-b951-d872f2087c98