summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* class PageLoadTrackerUnitTest is not used anymore. Remove.dilmah@chromium.org2011-05-041-4/+0
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6929014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84077 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84060 - Remove cancel from RunnableFunctions.dmaclach@chromium.org2011-05-041-19/+32
| | | | | | | | | | | | BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6690031 TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/6927012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84063 0039d316-1c4b-4281-b951-d872f2087c98
* Remove cancel from RunnableFunctions.dmaclach@chromium.org2011-05-041-32/+19
| | | | | | | | | BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6690031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84060 0039d316-1c4b-4281-b951-d872f2087c98
* Updating logging in src/base/. Using DCHECK_NE/EQ/LE/GE/GT() where possiblekushi.p@gmail.com2011-05-048-12/+16
| | | | | | | | | BUG=58409 Review URL: http://codereview.chromium.org/6883295 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84016 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate wstring from base/utf_offset_string_conversions.h, ↵pkasting@chromium.org2011-05-033-285/+139
| | | | | | | | | | net/base/escape.h, and net/base/net_util.h, and reduce the API surfaces in various places slightly where possible. BUG=23581 TEST=none Review URL: http://codereview.chromium.org/6898026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83948 0039d316-1c4b-4281-b951-d872f2087c98
* Switch IPC::ChannelProxy to use MessageLoopProxy instead of MessageLoop. ↵jam@chromium.org2011-05-021-1/+1
| | | | | | | | This allows us to remove usage of the IOThread object, and generally makes IPC::ChannelProxy more robust for future uses. Review URL: http://codereview.chromium.org/6901146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83741 0039d316-1c4b-4281-b951-d872f2087c98
* linux: components buildevan@chromium.org2011-05-029-21/+30
| | | | | | | | Reapply r83630, r83629, r83583, and fix the one compile error. TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83740 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83641 - DNS Host resolver changes with retry logic. Fix forjar@chromium.org2011-05-021-22/+0
| | | | | | | | | | | | | | | | | | | | | | | bug Chromium cannot recover from a state when its DNS requests have been dropped. Whenever we try to resolve the host, we post a delayed task to check if host resolution (OnLookupComplete) is completed or not. If the original ateempt hasn't completed, then we start another attempt to resolve for the same request. We take the results from the attempt that finishes first and leave all other attempts as orphaned. BUG=73327 TEST=dns host resolver tests R=eroman,jar Review URL: http://codereview.chromium.org/6782001 TBR=rtenneti@chromium.org Review URL: http://codereview.chromium.org/6902198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83710 0039d316-1c4b-4281-b951-d872f2087c98
* Modified Value::GetAsDouble so the function returns true when the object ↵yusukes@google.com2011-05-022-3/+10
| | | | | | | | | | | | | | | holds an Integer. This should be useful when implementing an extension API in C++ since chrome.api.call(1.0); call in JS passes a Value of Integer to the C++ code while chrome.api.call(1.1); does a Value of Double. I'm working on this following Mihai's suggestion in http://codereview.chromium.org/6905053/. BUG=chromium-os:14421 TEST=ran try Review URL: http://codereview.chromium.org/6893089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83705 0039d316-1c4b-4281-b951-d872f2087c98
* DNS Host resolver changes with retry logic. Fix forrtenneti@chromium.org2011-04-301-0/+22
| | | | | | | | | | | | | | | | | | | | bug Chromium cannot recover from a state when its DNS requests have been dropped. Whenever we try to resolve the host, we post a delayed task to check if host resolution (OnLookupComplete) is completed or not. If the original ateempt hasn't completed, then we start another attempt to resolve for the same request. We take the results from the attempt that finishes first and leave all other attempts as orphaned. BUG=73327 TEST=dns host resolver tests R=eroman,jar Review URL: http://codereview.chromium.org/6782001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83641 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83631 - linux: successfully build net_unittests in components buildmaf@chromium.org2011-04-302-8/+6
| | | | | | | | | | | Just tagging more bits of base API. Review URL: http://codereview.chromium.org/6902169 TBR=evan@chromium.org Review URL: http://codereview.chromium.org/6902183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83637 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83630 - linux components: expose one last function from base needed ↵maf@chromium.org2011-04-302-5/+3
| | | | | | | | | | | by test_shell Review URL: http://codereview.chromium.org/6883279 TBR=evan@chromium.org Review URL: http://codereview.chromium.org/6902182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83636 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83629 - linux components: expose more BASE_API used by Chrome itselfmaf@chromium.org2011-04-305-16/+12
| | | | | | | | | Review URL: http://codereview.chromium.org/6902177 TBR=evan@chromium.org Review URL: http://codereview.chromium.org/6903159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83635 0039d316-1c4b-4281-b951-d872f2087c98
* linux: successfully build net_unittests in components buildevan@chromium.org2011-04-292-6/+8
| | | | | | | | Just tagging more bits of base API. Review URL: http://codereview.chromium.org/6902169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83631 0039d316-1c4b-4281-b951-d872f2087c98
* linux components: expose one last function from base needed by test_shellevan@chromium.org2011-04-292-3/+5
| | | | | | Review URL: http://codereview.chromium.org/6883279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83630 0039d316-1c4b-4281-b951-d872f2087c98
* linux components: expose more BASE_API used by Chrome itselfevan@chromium.org2011-04-295-12/+16
| | | | | | Review URL: http://codereview.chromium.org/6902177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83629 0039d316-1c4b-4281-b951-d872f2087c98
* Add a rand_util method for generating a random string.abarth@chromium.org2011-04-293-5/+39
| | | | | | | | We need this function to generate a nonce for MAC cookies. Review URL: http://codereview.chromium.org/6904118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83588 0039d316-1c4b-4281-b951-d872f2087c98
* linux: components support for base/evan@chromium.org2011-04-2912-55/+75
| | | | | | | | This builds base_unittests using libbase as a component. Review URL: http://codereview.chromium.org/6904109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83583 0039d316-1c4b-4281-b951-d872f2087c98
* There's no need to export the key_iterator class, and exporting itdarin@chromium.org2011-04-291-1/+1
| | | | | | | | | | | breaks VS2005 compilation. R=rvargas BUG=80925 TEST=none Review URL: http://codereview.chromium.org/6880306 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83548 0039d316-1c4b-4281-b951-d872f2087c98
* Mac base cleanup.avi@chromium.org2011-04-295-44/+38
| | | | | | | | | | | Move the sole inhabitant of base/foundation_utils_mac.h into base/mac/foundation_util.h|mm. BUG=none TEST=none Review URL: http://codereview.chromium.org/6904128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83514 0039d316-1c4b-4281-b951-d872f2087c98
* Use the IAttachmentExecute service to set the Zone.Identifier stream,joaodasilva@chromium.org2011-04-291-13/+16
| | | | | | | | | | | | | | | | | when available. This is used to mark files as untrusted, because they were downloaded from the internet. The DownloadTest.CheckInternetZone browser test was failing previously because the Zone.Identifier stream created by the IAttachmentExecute service uses \r\n for newlines, and the test was checking for \n. See also http://codereview.chromium.org/590001, which this should close. BUG=5719 TEST=DownloadTest.CheckInternetZone Review URL: http://codereview.chromium.org/6880236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83502 0039d316-1c4b-4281-b951-d872f2087c98
* Field trials are currently implemented (commonly) using a static variable ↵rtenneti@chromium.org2011-04-293-23/+140
| | | | | | | | | | | | | | | | | | | | that is set once, the first time it is necessary to decide if there is an experiment by a given name active. With this change the field-test system can "push" a group that is selected for the given field trial (field test) if/when an experiment does arrive. This change implements a simple IPC notification of the result of a FieldTrial setting being sent to any previously started renderers. BUG=16494 TEST=field trial tests R=jar Review URL: http://codereview.chromium.org/6883029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83488 0039d316-1c4b-4281-b951-d872f2087c98
* Fix one more time the linux tests, in other words giving up on improving the ↵cpu@chromium.org2011-04-291-10/+14
| | | | | | | | tests TBR=brettw git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83469 0039d316-1c4b-4281-b951-d872f2087c98
* fix failing linux tests.cpu@chromium.org2011-04-291-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83458 0039d316-1c4b-4281-b951-d872f2087c98
* Add a more comprehensive background mode for a process.cpu@chromium.org2011-04-282-8/+40
| | | | | | | | | | | | | | It also lowers the priority of IO. -Windows vista, win7 only -Bad usage of closehandle fixed BUG=none TEST=unittest included Review URL: http://codereview.chromium.org/6880265 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83447 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 83186: Enable building base.dll for the multi-dll build.rvargas@google.com2011-04-281-1/+21
| | | | | | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6883173 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/6902117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83369 0039d316-1c4b-4281-b951-d872f2087c98
* Improving logging in /app, /base, /crypto and /ipc. Updating plain DCHECK() ↵kushi.p@gmail.com2011-04-281-1/+1
| | | | | | | | | | | usages for DCHECK_EQ/LE/GE() equivalents. BUG=58409 TEST=None Review URL: http://codereview.chromium.org/6880166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83362 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83186 - Enable building base.dll for the multi-dll build.rvargas@google.com2011-04-271-21/+1
| | | | | | | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6883173 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/6883197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83194 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DirectoryLister not to require refcounting.willchan@chromium.org2011-04-271-2/+4
| | | | | | | | | | | | Also prevent DirectoryLister from blocking the IO thread when cancelled (blocked on joining file IO thread). Allows us to remove refcounting from URLRequestFileDirJob. BUG=65331 TEST=Browse to file:/// and make sure it still works. Test cancellation by closing the tab. Review URL: http://codereview.chromium.org/6898047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83193 0039d316-1c4b-4281-b951-d872f2087c98
* Enable building base.dll for the multi-dll build.rvargas@google.com2011-04-271-1/+21
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6883173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83186 0039d316-1c4b-4281-b951-d872f2087c98
* Moved mru_cache from content/common to base/memory.agayev@chromium.org2011-04-274-0/+525
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6883187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83182 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Adjust dependencies to build with base.dllrvargas@google.com2011-04-261-0/+3
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6894040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83082 0039d316-1c4b-4281-b951-d872f2087c98
* X message pump: Remove unnecessary code.sadrul@chromium.org2011-04-261-9/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6901039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83081 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Fix the logging export api to fix release builds ofrvargas@google.com2011-04-261-1/+1
| | | | | | | | | | chrome using base.dll BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6904010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83073 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r83048 "Removed wchar_t from Time::FromString."maruel@chromium.org2011-04-267-253/+163
| | | | | | | | | | | | This causes regression on KeywordProviderTest.Edit on clang produced executable. TBR=shinyak BUG= TEST= Review URL: http://codereview.chromium.org/6893031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83055 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ReleasableInstanceName to account for the fact that the V propertymark@chromium.org2011-04-262-83/+234
| | | | | | | | | | | | | | | | | attribute isn't always last, despite what the documentation says. Add a CHECK that trips when a property's attributes indicates that it has a named instance variable backing it but no such instance variable is found in the object. Beef up the Sesame Street unit test to give ReleasableInstanceName a more thorough test. BUG=none TEST=none Review URL: http://codereview.chromium.org/6902035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83054 0039d316-1c4b-4281-b951-d872f2087c98
* Removed wchar_t from Time::FromString.shinyak@google.com2011-04-267-163/+253
| | | | | | | | | | | | | Also, some of the test case are moved from pr_time_unittests to time_unittests. BUG=77962 TEST=base_unittests:TimeTest.* Review URL: http://codereview.chromium.org/6903022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83048 0039d316-1c4b-4281-b951-d872f2087c98
* added md5_unittestshinyak@google.com2011-04-252-0/+199
| | | | | | | | | | BUG=77458 TEST=base_unittests:MD5.* Review URL: http://codereview.chromium.org/6896006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82953 0039d316-1c4b-4281-b951-d872f2087c98
* wstring: remove wstring functions from base/i18n/rtl.hevan@chromium.org2011-04-253-83/+18
| | | | | | | | | | And update callers. BUG=23581 Review URL: http://codereview.chromium.org/6883140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82924 0039d316-1c4b-4281-b951-d872f2087c98
* Revert my recent changes regarding title directionality.evan@chromium.org2011-04-251-22/+0
| | | | | | | | | | | | | | | | This reverts: r82400: Plumb direction of document title through IPC layer. r82582: Add and use a base::i18n::StringWithDirection for carrying titles. r82778: Change NavigationEntry's title fields to carry the text direction. I'm going to take an alternative approach; after getting this far, I can see that this approach was too complicated. BUG=27094 Review URL: http://codereview.chromium.org/6901003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82908 0039d316-1c4b-4281-b951-d872f2087c98
* Extend PathService::Get to be able to return the X86 program files path.abodenha@chromium.org2011-04-252-3/+14
| | | | | | | | | | | | | | | | Cloud print's virtual driver needs this to be able to find the Chrome install directory. Since the port monitor is a 64 bit DLL on 64 bit Windows it needs to request the X86 folder explicitly. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82567 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82686 Review URL: http://codereview.chromium.org/6873159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82891 0039d316-1c4b-4281-b951-d872f2087c98
* Delete a few unused functions.thakis@chromium.org2011-04-251-3/+0
| | | | | | | | | BUG=none TEST=Compiles. Review URL: http://codereview.chromium.org/6880164 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82884 0039d316-1c4b-4281-b951-d872f2087c98
* Change NavigationEntry's title fields to carry the text direction.evan@chromium.org2011-04-231-0/+5
| | | | | | | | | | | Mark most of the users with a tag pointing at the bug, so they can be fixed incrementally. BUG=27094 Review URL: http://codereview.chromium.org/6894009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82778 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Fix FileVersionInfo::CreateFileVersionInfoForCurrentModule so thatrvargas@google.com2011-04-223-11/+41
| | | | | | | | | | | when base is built as a dll, the module that is inspected for the version info is the one that makes the call instead of base.dll BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6897016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82754 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Change the AtExitManager so that if base is builtrvargas@google.com2011-04-221-4/+10
| | | | | | | | | | | as a dll, multiple managers could coexist in the same address space. BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6897015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82724 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 82686 - Extend PathService::Get to be able to return the X86 program ↵abodenha@google.com2011-04-222-10/+3
| | | | | | | | | files path.Cloud print's virtual driver needs this to be able to find the Chrome install directory. Since the port monitor is a 64 bit DLL on 64 bit Windows it needs to request the X86 folder explicitly.BUG=TEST=Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82567Review URL: http://codereview.chromium.org/6873159 TBR=abodenha@chromium.org Review URL: http://codereview.chromium.org/6880147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82699 0039d316-1c4b-4281-b951-d872f2087c98
* Extend PathService::Get to be able to return the X86 program files path.abodenha@chromium.org2011-04-222-3/+10
| | | | | | | | | | | | | | Cloud print's virtual driver needs this to be able to find the Chrome install directory. Since the port monitor is a 64 bit DLL on 64 bit Windows it needs to request the X86 folder explicitly. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82567 Review URL: http://codereview.chromium.org/6873159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82686 0039d316-1c4b-4281-b951-d872f2087c98
* Update DCHECK() usage to utilize the more expressive debugging functions.kushi.p@gmail.com2011-04-228-18/+18
| | | | | | | | BUG=58409 Review URL: http://codereview.chromium.org/6891008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82639 0039d316-1c4b-4281-b951-d872f2087c98
* Use the real Mac browser app's bundle identifier everywhere that a basemark@chromium.org2011-04-224-6/+61
| | | | | | | | | | | | | | | | | | | | | bundle identifier is needed on the Mac. This means that everything will use up using org.chromium.Chromium, com.google.Chrome, or com.google.Chrome.canary when it's important to get the base bundle identifier. .helper and .framework will not be appended. Note, however, that things that run inside the helper and use CFPreferences or NSUserDefaults will continue to write their defaults as org.chromium.Chromium.helper or com.google.Chrome.helper. Mostly this just affects the Flash plug-in's settings for the NSNav open dialog. There is no com.google.Chrome.canary.helper, but that's not expected to be a problem. This change ensures that Chromes, canaries, and Chromiums don't get in each other's way. BUG=79814 TEST=none Review URL: http://codereview.chromium.org/6896003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82626 0039d316-1c4b-4281-b951-d872f2087c98
* Add and use a base::i18n::StringWithDirection for carrying titles.evan@chromium.org2011-04-211-1/+18
| | | | | | | | | | | | This is a refactoring of r82400. We're going to need the title direction in a bunch of different places; it's better to package it up as one object. BUG=27094 Review URL: http://codereview.chromium.org/6878089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82582 0039d316-1c4b-4281-b951-d872f2087c98