summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* recursive_mutexerikkay@google.com2008-08-116-27/+228
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@650 0039d316-1c4b-4281-b951-d872f2087c98
* Provide cross-platform implementation of WaitableEvent for use on Mac and Linux.darin@google.com2008-08-117-13/+201
| | | | | | | | | I gave the file the suffix _generic since it is implemented entirely in terms of other APIs in base. This CL also adds a simple unit test for WaitableEvent, and I switched some code in thread.cc over to using WaitableEvent. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@648 0039d316-1c4b-4281-b951-d872f2087c98
* Allow multiple AtExitManagers to be chained in a stack, this allows much ↵deanm@google.com2008-08-1110-535/+146
| | | | | | | | | | easier testing for code that is expecting to be run via an AtExitManager. This actually cleaned up a lot of the at exit code. Clean up singleton_dll_unittest. It is no longer windows specific DLL, and now is much simpler, and builds and runs cross platform. BUG=1314043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@646 0039d316-1c4b-4281-b951-d872f2087c98
* Define a private IDMap::iterator, and use our own iterator / const_iterator.deanm@google.com2008-08-111-5/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@645 0039d316-1c4b-4281-b951-d872f2087c98
* HashTable is a dependent name, since it's based on the template parameter T. ↵deanm@google.com2008-08-111-2/+2
| | | | | | Use typename for derived types, this will now build on GCC. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@643 0039d316-1c4b-4281-b951-d872f2087c98
* Remove class scoping operator from Pickle method declaration.deanm@google.com2008-08-111-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@641 0039d316-1c4b-4281-b951-d872f2087c98
* Even though AtExit should never be called while an object is being accessed, ↵deanm@google.com2008-08-111-3/+2
| | | | | | it is cleaner and a bit safer to doing an AtomicExchange, so instance_ is not kept as the pointer value while we're deleting it. This also moves an unsafe direct access to the AtomicWord to calling through the atomic API. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@640 0039d316-1c4b-4281-b951-d872f2087c98
* Add a NOTIMPLEMENTED() macro to annotate the code paths which need ↵ericroman@google.com2008-08-103-0/+78
| | | | | | revisiting for the mac/linux port. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@635 0039d316-1c4b-4281-b951-d872f2087c98
* I suspect this comment was not intended...ericroman@google.com2008-08-104-4/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@634 0039d316-1c4b-4281-b951-d872f2087c98
* rollback the experimentsdarin@google.com2008-08-091-34/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@630 0039d316-1c4b-4281-b951-d872f2087c98
* experiment with APCsdarin@google.com2008-08-091-11/+33
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@629 0039d316-1c4b-4281-b951-d872f2087c98
* just a test...darin@google.com2008-08-091-0/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@628 0039d316-1c4b-4281-b951-d872f2087c98
* A basic wrapper for a windows event object that encapsulates the way we ↵darin@google.com2008-08-094-0/+187
| | | | | | | | often use windows events. This API is not meant to be compatible with ObjectWatcher or MessageLoop::WatchObject. This API is meant to be easily ported to Mac & Linux using a traditional mutex and condition variable pairing. There's nothing to test here since the implementation is such a thin wrapper around Win32 APIs. However, once we go off to implement a posix version, we'll need some tests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@620 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug 1317458: Busy wait in IPC::SyncChannel::Send in some casesmpcomplete@google.com2008-08-091-6/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@610 0039d316-1c4b-4281-b951-d872f2087c98
* Add deps files and rules for the checkdeps script.brettw@google.com2008-08-083-0/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@600 0039d316-1c4b-4281-b951-d872f2087c98
* Add some extra test cases for whitespace at start/end of number.ericroman@google.com2008-08-081-0/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@598 0039d316-1c4b-4281-b951-d872f2087c98
* pulling in more files to run more unit testspinkerton@google.com2008-08-081-0/+36
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@597 0039d316-1c4b-4281-b951-d872f2087c98
* fix base test harness to work on mac. fix command_line unit tests to match ↵pinkerton@google.com2008-08-084-8/+85
| | | | | | what windows expects. fix base xcode project to separate building and running unit tests into two targets. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@593 0039d316-1c4b-4281-b951-d872f2087c98
* * add base_paths_mac.mm to mac porterikkay@google.com2008-08-0810-71/+644
| | | | | | | | * add file_util_posix.cc to mac port (NOTE: untested on linux) * a bit of cleanup in path_service.cc related to this * a few more cleanups to file_util.cc to make it build for mac git-svn-id: svn://svn.chromium.org/chrome/trunk/src@589 0039d316-1c4b-4281-b951-d872f2087c98
* Stub out unused Windows specific code.paulg@google.com2008-08-082-9/+22
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@588 0039d316-1c4b-4281-b951-d872f2087c98
* MemoryDebug uses size_t, which portably comes from <sys/types.h>. Use ↵mmentovai@google.com2008-08-082-7/+12
| | | | | | "base/basictypes.h" to get it, and clean up a couple other things. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@587 0039d316-1c4b-4281-b951-d872f2087c98
* pull out command_line_unittest until it workspinkerton@google.com2008-08-081-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@580 0039d316-1c4b-4281-b951-d872f2087c98
* Remove cruft of old unit test harness, replace it with gTest goodness. Fix ↵pinkerton@google.com2008-08-082-145/+109
| | | | | | extern-ness of a couple of globals in command_line. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@579 0039d316-1c4b-4281-b951-d872f2087c98
* Catch up SCons build with latest changes:sgk@google.com2008-08-081-1/+10
| | | | | | | | | | | Add new *_posix.cc, and condition_variable_win.cc files, replacing old condition_variable.cc file. Additional updates: Remove reference to deleted FontMetrics.cpp. Add word_iterator_unittest.cc. Add two overlooked language .rc files (es-419 and nb). TBR: mmentovai git-svn-id: svn://svn.chromium.org/chrome/trunk/src@576 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak and assert that the values are correct.tc@google.com2008-08-081-1/+27
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@571 0039d316-1c4b-4281-b951-d872f2087c98
* Add observer_list_unittest.cc to base test target. Fix gcc warnings with ↵pinkerton@google.com2008-08-082-1/+6
| | | | | | virtual methods w/ non-virtual dtor and members being initialized in the init-list in the wrong order. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@569 0039d316-1c4b-4281-b951-d872f2087c98
* Add Lock and LockImpl to the test target to get it linking.mmentovai@google.com2008-08-081-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@568 0039d316-1c4b-4281-b951-d872f2087c98
* Port LockImpl, Lock, and ConditionVariable to pthreads-supporting platforms.mmentovai@google.com2008-08-089-78/+195
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@567 0039d316-1c4b-4281-b951-d872f2087c98
* fix recursionpinkerton@google.com2008-08-081-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@562 0039d316-1c4b-4281-b951-d872f2087c98
* Logging cleanup for mac and linuxpinkerton@google.com2008-08-081-15/+164
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@561 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the first line filename comment to make this consistent with the restdeanm@google.com2008-08-082-2/+0
| | | | | | | of our source code. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@556 0039d316-1c4b-4281-b951-d872f2087c98
* rollback my experiment to see the effectsdarin@google.com2008-08-081-4/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@551 0039d316-1c4b-4281-b951-d872f2087c98
* This is a revised CB of issue 738 and 764 (which were made jungshik@google.com2008-08-083-20/+62
| | | | | | | | | | | | | | | | | | | | | | | before svn move). This and CB 1161 are intended for the inclusion in the release branch (if possible). I have some more changes coming up for the trunk. * Added two new outparams (script_Checked, char_checked) to use in FontCacheWin (revised in a companion CB). * For USCRIPT_COMMON and USCRIPT_INHERITED, get the Unicode block and map it to a script to determine a font. It's useful for CJK punctuations and some other cases (bug 1241039) * Change the default Arabic font to Tahoma to make Arabic rendering work on non-Arabic Win XP out of the box (bug 1314945) * Use Simsun even for TC because it covers both SC and TC and is likely to speed up TC chrome rendering SC pages. BUG=1241039,1314945,971960,1314940 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@547 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a NOTREACHED() that was causing a dialog box during unit tests, hencemaruel@google.com2008-08-072-12/+4
| | | | | | making it timeout on the test bot. Also simplify the test code. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@546 0039d316-1c4b-4281-b951-d872f2087c98
* Complete brett's string conversion goodness for utf32 platforms.pinkerton@google.com2008-08-071-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@542 0039d316-1c4b-4281-b951-d872f2087c98
* Fix an accidental nested extern and conversion cleanup from brett's landing.pinkerton@google.com2008-08-071-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@541 0039d316-1c4b-4281-b951-d872f2087c98
* remove fixed_string from build.pinkerton@google.com2008-08-071-8/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@538 0039d316-1c4b-4281-b951-d872f2087c98
* Removing unnecessary information; it's not clarifying things.avi@google.com2008-08-071-3/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@537 0039d316-1c4b-4281-b951-d872f2087c98
* Add a unit test for WordIterator. Fix word_iterator.* includes at the same time.maruel@google.com2008-08-074-6/+108
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@536 0039d316-1c4b-4281-b951-d872f2087c98
* Add UTF-16 <-> Wide conversions for Mac.brettw@google.com2008-08-073-24/+94
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@534 0039d316-1c4b-4281-b951-d872f2087c98
* Improve PathServiceTest test by verifying that the returned path exists.maruel@google.com2008-08-073-9/+34
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@533 0039d316-1c4b-4281-b951-d872f2087c98
* Port in threading for Posix. Will require fixes to MessageLoop and Task to ↵avi@google.com2008-08-075-9/+174
| | | | | | compile on the Mac, though. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@532 0039d316-1c4b-4281-b951-d872f2087c98
* Pinkerton's port/fix-up of command-line processing to work cross-platform.evanm@google.com2008-08-073-40/+130
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@531 0039d316-1c4b-4281-b951-d872f2087c98
* This is an experiment to see the impact of a boosted priority on the pagedarin@google.com2008-08-071-0/+4
| | | | | | | | | | | cyclers. I worry that this could lead to starvation of regular tasks (it is common for OnObjectSignaled to do another IO call), so I don't think this is necessarily a good solution. TBR=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@530 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sys_string_conversions for use on the Mac.mmentovai@google.com2008-08-073-20/+27
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@528 0039d316-1c4b-4281-b951-d872f2087c98
* Rename and remove a bunch of string functions.evanm@google.com2008-08-075-167/+62
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@527 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the unit tests for the error condition. Vista handles the error ↵brettw@google.com2008-08-071-2/+8
| | | | | | differently, so we can't have a consistent repro case. I don't think this is important to test anyway, since the functions are defined to do whatever the OS does. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@525 0039d316-1c4b-4281-b951-d872f2087c98
* Add defines for the size of wchar_t to build_config.h. Use this in places ↵brettw@google.com2008-08-0713-218/+210
| | | | | | | | | | where we currently have an OS-specific check. Remove all WIN32 ifdefs from base and replace them with proper defined(OS...). I also fixed random style bits when I encountered them. I made major style fixes to string16. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@524 0039d316-1c4b-4281-b951-d872f2087c98
* Cross-platform portability fixes for JSONReader. Adds generic ↵mmentovai@google.com2008-08-078-54/+214
| | | | | | | | string-to-double parsing and tests in string_util. There is one behavior change here: numbers which "look" like integers by virtue of being free of '.', 'e', and 'E' are no longer rejected if they're not within the [INT_MIN .. INT_MAX] range. Instead, they'll be parsed and stored internally as doubles. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@519 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply 508 to determine if it was indeed the cause of the ↵maruel@google.com2008-08-072-15/+10
| | | | | | webkit-release-playback failure. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@518 0039d316-1c4b-4281-b951-d872f2087c98