summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add time_format (r1063) to the xcode projavi@google.com2008-08-191-0/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1069 0039d316-1c4b-4281-b951-d872f2087c98
* Get base/gfx into shape, and start running/passing some base_gfx testsmmentovai@google.com2008-08-191-42/+107
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1066 0039d316-1c4b-4281-b951-d872f2087c98
* Move time formatters that only use ICU into base/time.*tc@google.com2008-08-194-0/+164
| | | | | | | | | | | | | This allows us to use the time formatters in, e.g., net or webkit. Remove CookieExpires since it's not used. BUG=1164516 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1063 0039d316-1c4b-4281-b951-d872f2087c98
* ThreadLocalStorage::Set should take care of validating its inputs. No need todarin@google.com2008-08-191-1/+0
| | | | | | | | | do that in the MessageLoop constructor. TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1058 0039d316-1c4b-4281-b951-d872f2087c98
* disable test while we wait for linux fixdarin@google.com2008-08-191-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1057 0039d316-1c4b-4281-b951-d872f2087c98
* fix build bustagedarin@google.com2008-08-191-2/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1054 0039d316-1c4b-4281-b951-d872f2087c98
* Define MessagePumpDefault and use it to implement MessageLoop on non-Windowsdarin@google.com2008-08-1912-53/+321
| | | | | | | | | | | | | | | | | platforms. This is actually just a first-step toward the real fix which is to use MessagePumpDefault on all platforms on non-UI and non-IO threads. This CL also fixes some GCC compilation errors. I renamed MessageLoopOwnable to TaskBase, which seems more appropriate since a MessageLoopOwnable has a next Task pointer and clearly is only meaningful in the context of Task. (I wonder why it is even a separate class, but that is another issue.) I had to make the next_task / set_next_task methods public since they are used by an inner class of MessageLoop. Perhaps those inner classes should be made into top-level classes, but that seemed like too much to change at this time. R=jar,mmentovai git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1045 0039d316-1c4b-4281-b951-d872f2087c98
* Add mime_util and http_chunked_decoder to mac project.ericroman@google.com2008-08-191-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1041 0039d316-1c4b-4281-b951-d872f2087c98
* Update SCons base_unittests build to track recent (?) VS build changes:sgk@google.com2008-08-191-2/+4
| | | | | | | | | | * Add $GTEST_DIR{,/include} to CPPPATH. * Fix a typo in $ICU38/_DIRpublic/i18n. * Add GOOGLE_CHROME_BUILD to CPPDEFINES. * Remove /Wp64. TBR: bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1037 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files to non-Win32-specific blocks. These build and pass tests on ↵mmoss@google.com2008-08-191-1/+2
| | | | | | Linux. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1035 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sys_strings_conversion_mac to use .data() rather than .c_str() now thatmmentovai@google.com2008-08-191-1/+1
| | | | | | | the input string is a StringPiece. This should be fine, as we pass a byte count to CFStringCreateWithBytesNoCopy. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1033 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a new[] / delete mismatch in a unittest.deanm@google.com2008-08-191-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1030 0039d316-1c4b-4281-b951-d872f2087c98
* Move the system string conversion functions from std::string to StringPiece. ↵deanm@google.com2008-08-198-14/+28
| | | | | | We often work with char* in the system layer, so this should save extra copying. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1027 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few tests to string_escape improving code coverage.deanm@google.com2008-08-191-0/+10
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1026 0039d316-1c4b-4281-b951-d872f2087c98
* Use __ImageBase linker variable instead of VirtualQuery on a global variable.deanm@google.com2008-08-191-7/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1025 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests for From / In converions and LocalMidnight. Add InMinutes().deanm@google.com2008-08-194-2/+43
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1024 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some warnings found in string unittests.evanm@google.com2008-08-192-91/+96
| | | | | | | (Preparation for enabling -Wall -Werror.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1012 0039d316-1c4b-4281-b951-d872f2087c98
* Use LF for newlines in all DEPS filesmmentovai@google.com2008-08-182-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1011 0039d316-1c4b-4281-b951-d872f2087c98
* Rearrange and add notes on remaining base modules that are in the ↵evanm@google.com2008-08-181-10/+15
| | | | | | Windows-specific branch of the SConscript. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@998 0039d316-1c4b-4281-b951-d872f2087c98
* Make some net unittests compile and pass on linux.tc@google.com2008-08-182-0/+14
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@991 0039d316-1c4b-4281-b951-d872f2087c98