summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Use a more compact license header in source files.license.bot2008-08-24287-10266/+3376
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Add a spinlock wait to the dearly beloved crititcal sectioncpu@google.com2008-08-231-1/+3
| | | | | | | | - the 2000 is a guess, I think the right number is between 1000 and 4000 - lets look at perf, if hurts then we remove it git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1271 0039d316-1c4b-4281-b951-d872f2087c98
* We're hoping to find exit codes that are incorrectly counted jar@google.com2008-08-231-4/+34
| | | | | | | | | | | | | as "crashes" but are "not really." Toward that end, we want a "complete" list of exit codes, which categorigized as "crashes." Note we don't record stats when we "recognize" the exit code. r=evanm,nsylvain git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1269 0039d316-1c4b-4281-b951-d872f2087c98
* Adds capabilities for IPC messages of type long, for the primary purpose of ↵klink@google.com2008-08-222-0/+20
| | | | | | accessibility related communication. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1263 0039d316-1c4b-4281-b951-d872f2087c98
* Add the condition variable unittest to all builds.paulg@google.com2008-08-221-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1253 0039d316-1c4b-4281-b951-d872f2087c98
* Make the condition variable unit test cross platform.paulg@google.com2008-08-223-89/+87
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1246 0039d316-1c4b-4281-b951-d872f2087c98
* De-winify context headers in prep for future mac implementations. First step.pinkerton@google.com2008-08-221-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1239 0039d316-1c4b-4281-b951-d872f2087c98
* Impl of platform mime typing for Mac.avi@google.com2008-08-223-5/+62
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1238 0039d316-1c4b-4281-b951-d872f2087c98
* Work around a UMR reported by purify by using a different ICUtc@google.com2008-08-221-1/+5
| | | | | | | | | | | | method. The internets tell me that the UMR in getTerminatedBuffer() is harmless [1], but this seems better anyway. BUG=1339780 [1] http://osdir.com/ml/lib.icu.c++.support/2005-03/msg00022.html git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1232 0039d316-1c4b-4281-b951-d872f2087c98
* Remove CallWrapper and SimpleThread. They overlap too closely with the ↵deanm@google.com2008-08-228-820/+0
| | | | | | message loop variants Thread and Task. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1230 0039d316-1c4b-4281-b951-d872f2087c98
* Properly initialize PlatformThreadHandle. The Open Group Base ↵deanm@google.com2008-08-222-4/+6
| | | | | | Specifications Issue 6 states that pthread_t cannot be assumed to be a numeric type. It should be safe to value initialize it with (), even if it's a structure. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1226 0039d316-1c4b-4281-b951-d872f2087c98
* Back out r1223, we'll just look at the logs on the buildbots for now. It ↵mmentovai@google.com2008-08-221-1/+1
| | | | | | would be nice to send only ERROR warnings to stderr to avoid the noise. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1225 0039d316-1c4b-4281-b951-d872f2087c98
* Make CallWrappers multiuse. No longer make CallWrapper->Run() self ↵deanm@google.com2008-08-225-51/+90
| | | | | | deleting. Since the SimpleThread API backs to joinable threads, the common use case makes it simple for the caller to manage the CallWrapper memory, and this makes everything much clearer. This also allows a CallWrapper's Run() to be called multiple times. This also moves CallWrapper into the base namespace, which I'm told is all the rage these days. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1224 0039d316-1c4b-4281-b951-d872f2087c98
* Send log output to stderr on Windows when uninitializedmmentovai@google.com2008-08-221-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1223 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up some method naming style.deanm@google.com2008-08-221-13/+14
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1218 0039d316-1c4b-4281-b951-d872f2087c98
* Create a simple abstraction to a native OS thread, mostly useful for ↵deanm@google.com2008-08-227-2/+372
| | | | | | unittesting when you don't want a message loop. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1217 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up warnings in Skia (also sent upstream)mmentovai@google.com2008-08-221-2/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1209 0039d316-1c4b-4281-b951-d872f2087c98
* Disable -Werror in base_gfx until Skia is fixedmmentovai@google.com2008-08-221-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1208 0039d316-1c4b-4281-b951-d872f2087c98
* Enable -Werror on the Mac. Fix two more warnings just added to our build. ↵mmentovai@google.com2008-08-221-3/+3
| | | | | | Note that the targets for libskia and libicuuc still exclude themselves from -Werror. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1205 0039d316-1c4b-4281-b951-d872f2087c98
* Add more base unittests that are now passing to the mac build.paulg@google.com2008-08-211-0/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1201 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the final gcc warnings in base and net. Provide some macros to ↵mmentovai@google.com2008-08-214-13/+98
| | | | | | selectively disable MSVC warnings. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1194 0039d316-1c4b-4281-b951-d872f2087c98
* Kill off conjoined twin copy of the header.avi@google.com2008-08-211-61/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1193 0039d316-1c4b-4281-b951-d872f2087c98
* M base/base.xcodeproj/project.pbxprojawalker@google.com2008-08-211-2/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1187 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on mac platform files in base_gfx target, add image operations unit testawalker@google.com2008-08-211-2/+18
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1186 0039d316-1c4b-4281-b951-d872f2087c98
* crosstool's gcc gives lots of warnings likedkegel@google.com2008-08-211-5/+5
| | | | | | | | "warning: suggest parentheses around && within ||" For base/string_util.cc, just add the suggested parentheses. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1175 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the final few remaining warnings in basemmentovai@google.com2008-08-211-8/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1155 0039d316-1c4b-4281-b951-d872f2087c98
* Create a CallWrapper interface, for making closure-like callbacks. This is ↵deanm@google.com2008-08-215-0/+414
| | | | | | similar to RunnableMethod, but does not derive / involve a Task. This is more convenient than Callback, because the interfaces do not need to know what the underlying template arguments are, everything is dealt with as a CallWrapper*. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1151 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the unused make_scoped_ptr interface.deanm@google.com2008-08-211-30/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1150 0039d316-1c4b-4281-b951-d872f2087c98
* A small fixup to a comment that was over 80 cols.deanm@google.com2008-08-211-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1149 0039d316-1c4b-4281-b951-d872f2087c98
* Port the Thread class properly to Mac and Linux. This involved portingdarin@google.com2008-08-2113-334/+287
| | | | | | | | | | | | PlatformThread and creating an API on PlatformThread to create a native thread and later join with it. I also made a few other tweaks to PlatformThread, such as eliminating the Current() method which appears to be unused. The operator==() is also unused, so I killed it as well. I made a few other miscellaneous cleanups and adjustments. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1146 0039d316-1c4b-4281-b951-d872f2087c98
* Kill NavigationControllerBase. I merged the two into NavigationController.brettw@google.com2008-08-211-2/+2
| | | | | | | | | This fixes a leak of NavigationEntry's by using the spiffy linked ptr. I had to add a const to linked_ptr for the comparisons to work. BUG=1319484 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1137 0039d316-1c4b-4281-b951-d872f2087c98
* Bring thread_posix into Linux build and fix it for Linux/Mac.evanm@google.com2008-08-202-5/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1133 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some more warnings.evanm@google.com2008-08-202-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1130 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on -Wall -Werror, fixing a few files while I'm here and *temporarily* ↵evanm@google.com2008-08-201-1/+1
| | | | | | disabling some other warnings that take more effort to fix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1123 0039d316-1c4b-4281-b951-d872f2087c98
* TrackedObjects assumes you can use a "TLS slot" of -1 to indicate ↵evanm@google.com2008-08-209-98/+143
| | | | | | uninitialized. This isn't true for the pthread_key_t type, which is unsigned on Linux and reportedly a struct on Macs. This change modifies the Slot type to be a struct containing an "initialized" flag. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1122 0039d316-1c4b-4281-b951-d872f2087c98
* No need for size_mac.cc; subsumed by size.ccavi@google.com2008-08-201-48/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1119 0039d316-1c4b-4281-b951-d872f2087c98
* Revert. Failing unit tests.evanm@google.com2008-08-208-135/+90
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1118 0039d316-1c4b-4281-b951-d872f2087c98
* TrackedObjects assumes you can use a "TLS slot" of -1 to indicate ↵evanm@google.com2008-08-208-90/+135
| | | | | | uninitialized. This isn't true for the pthread_key_t type, which is unsigned on Linux and reportedly a struct on Macs. This change modifies the Slot type to be a struct containing an "initialized" flag. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1113 0039d316-1c4b-4281-b951-d872f2087c98
* fix hammer builddarin@google.com2008-08-202-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1108 0039d316-1c4b-4281-b951-d872f2087c98
* Disable warning 4355 on Windows builds: "'this' : used in base member ↵maruel@google.com2008-08-201-1/+0
| | | | | | initializer list". git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1100 0039d316-1c4b-4281-b951-d872f2087c98
* Merges in updated versions of Mac graphics platform classes, adds generic ↵awalker@google.com2008-08-2015-5/+1338
| | | | | | typedefs for use by higher level classes that just need to hold a reference (though does not yet refactor those classes). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1099 0039d316-1c4b-4281-b951-d872f2087c98
* Add MimeSnifferTest to net_unittests. Take message_pump_default.cc out ofmmentovai@google.com2008-08-201-2/+0
| | | | | | base_unittests, because it's already part of base. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1096 0039d316-1c4b-4281-b951-d872f2087c98
* Create a gtest test fixture subclass that allows for platform specific setup ↵erikkay@google.com2008-08-205-4/+123
| | | | | | and teardown hooks. On the Mac use this to create an outer Autorelease pool. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1089 0039d316-1c4b-4281-b951-d872f2087c98
* For some reason, when I changed PathData to be a singleton (r722) Purify ↵erikkay@google.com2008-08-201-7/+23
| | | | | | | | | | started noticing the leak that had existed in this data structure all along. Now we clean up the heap objects correctly. BUG=1334485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1088 0039d316-1c4b-4281-b951-d872f2087c98
* Pass StringPieces by constant reference.deanm@google.com2008-08-204-10/+10
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1085 0039d316-1c4b-4281-b951-d872f2087c98
* reland r1075 w/ tweak to fix test failuresdarin@google.com2008-08-2010-63/+81
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1084 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a few warnings in the tracked object comparatormmentovai@google.com2008-08-201-11/+19
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1081 0039d316-1c4b-4281-b951-d872f2087c98
* rollback r1075 to see if it helps resolve test failuresdarin@google.com2008-08-2010-81/+63
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1078 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate TimerManager::GetCurrentDelay in favor of always referring to the ↵darin@google.com2008-08-2010-63/+81
| | | | | | | | | | | fire time of the next timer. I changed the MessagePump API to refer to a delayed_work_time instead of a delay. I moved the ceil-based rounding code into the Window's implementations of WaitableEvent and MessagePump. R=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1075 0039d316-1c4b-4281-b951-d872f2087c98
* Send log messages to stderr when uninitialized on POSIX platforms.mmentovai@google.com2008-08-191-15/+28
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1071 0039d316-1c4b-4281-b951-d872f2087c98