summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_info.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use a direct include of strings headers in chrome/browser/j*-n*/.avi@chromium.org2013-06-101-1/+1
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15897014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205293 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193020 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 185068mal@chromium.org2013-03-021-2/+1
| | | | | | | | | | > Minor typos and style fixes. > TBR=cmp@chromium.org Review URL: https://codereview.chromium.org/12393027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185671 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 185602wez@chromium.org2013-03-011-1/+2
| | | | | | | | | | | This broke the FixupFile and FixupRelativeFile unit_tests on Linux Tests. > Minor typos and style fixes (2). TBR=aa@chromium.org Review URL: https://codereview.chromium.org/12388054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185606 0039d316-1c4b-4281-b951-d872f2087c98
* Minor typos and style fixes (2).aa@chromium.org2013-03-011-2/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185602 0039d316-1c4b-4281-b951-d872f2087c98
* Minor typos and style fixes.aa@chromium.org2013-02-271-1/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185068 0039d316-1c4b-4281-b951-d872f2087c98
* Only HistogramBase is used outside of base/metrics.kaiwang@chromium.org2013-01-231-2/+2
| | | | | | | | | | | | | | So client code of histogram will see a simpler interface. This also makes adding SparseHistogram to existing metrics framework possible. This CL depends on https://codereview.chromium.org/11682003/ So please review that one first. TBR=sky@chromium.org,erikwright@chromium.org BUG=139612 Review URL: https://chromiumcodereview.appspot.com/11615008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178242 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static initializer in url_info.cc.pliard@chromium.org2012-03-091-31/+49
| | | | | | | | | | BUG=94925 TEST=unit_tests Review URL: http://codereview.chromium.org/9635018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125844 0039d316-1c4b-4281-b951-d872f2087c98
* Towards an android build of "browser".yfriedman@chromium.org2012-02-081-1/+2
| | | | | | | | | | | | | Including ctype.h is technically necessary for IWYU and is strictly necessary for the android build. BUG= TEST= Review URL: http://codereview.chromium.org/9358037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121067 0039d316-1c4b-4281-b951-d872f2087c98
* iwyu: Include stringprintf.h where appropriate, part 2.jhawkins@chromium.org2011-05-111-1/+1
| | | | | | | | | | | BUG=82098 TEST=none R=thakis@chromium.org Review URL: http://codereview.chromium.org/7004007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85048 0039d316-1c4b-4281-b951-d872f2087c98
* Use lock-free lazy initialization for static histogram referencesjar@chromium.org2011-04-051-4/+5
| | | | | | | | | | | | | | | | Make all histogram macros thread safe, and fast by again using statics to achieve performance. ...at the cost of: Leak all histograms to avoid races at shutdown. Also included leak suppression for valgrind. r=rtenneti BUG=78207 Review URL: http://codereview.chromium.org/6780035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80412 0039d316-1c4b-4281-b951-d872f2087c98
* Removed static variable for histograms to avoid race withrtenneti@chromium.org2011-03-191-2/+2
| | | | | | | | | | | histogram initialization across threads. BUG=76092 TEST=histogram unit tests. Sync tests R=jar Review URL: http://codereview.chromium.org/6712040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78809 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass values by reference.jhawkins@chromium.org2011-03-111-4/+4
| | | | | | | | | | CID=8402,8494,8641,8716,8717,8740,9100 BUG=none TEST=none Review URL: http://codereview.chromium.org/6676015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77788 0039d316-1c4b-4281-b951-d872f2087c98
* base: Get rid of 'using' declaration of StringAppendF.tfarina@chromium.org2010-11-151-13/+16
| | | | | | | | | | | Update the callers to append base:: in the calls to StringAppendF. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4974001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66116 0039d316-1c4b-4281-b951-d872f2087c98
* Convert LOG(INFO) to VLOG(1) - chrome/browser/net/.pkasting@chromium.org2010-10-221-5/+3
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/4007001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63517 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Even more ctor/virtual deinlining.erg@google.com2010-10-191-0/+11
| | | | | | | | | | | (Only 424k off Linux debug .a files). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3859003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63059 0039d316-1c4b-4281-b951-d872f2087c98
* Move Stats, histograms, and field trial into a metrics subdirectory of base andbrettw@chromium.org2010-10-141-6/+6
| | | | | | | | | put them in the base namespace. TEST=it compiles BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62510 0039d316-1c4b-4281-b951-d872f2087c98
* Remove flakiness from url_info testsjar@chromium.org2010-09-291-3/+9
| | | | | | | | | | | | | | | | | | | This test was testing to be sure that timing was correctly monitored during the lifetime of these UrlHostInfo instances. The new code defensively checks values, and when tehy appear to be out of spec, it verifies that the test bot is indeed running slowly, and exits. This will usually run the test as expected, but gracefully exit when the bot is just too slow (or has too much variance in execution speed) to run the test carefully. r=phajdan.jr BUG=55169 Review URL: http://codereview.chromium.org/3431028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60962 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce fieldtrials percentages for push to stable M7jar@chromium.org2010-09-161-9/+0
| | | | | | | | | | In one case, completely removed the field trial. BUG=55634 r=mbelshe,willchan Review URL: http://codereview.chromium.org/3449003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59614 0039d316-1c4b-4281-b951-d872f2087c98
* Intercept navigations, not DNS resolutions, to predict startupjar@chromium.org2010-08-151-1/+1
| | | | | | | | | | | | | Transition from using a DNS observer, to using the TCP/IP connection interceptor (which is used for preconneciton and pre-resolution) to acquire the list of hosts to resolve at startup. BUG=42694 r=mbelshe Review URL: http://codereview.chromium.org/3169006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56163 0039d316-1c4b-4281-b951-d872f2087c98
* Support both preconnection, and pre-resolution for subresourcesjar@chromium.org2010-07-281-112/+12
| | | | | | | | | | | | | | | With this change, both preconnection and preresolution are enabled when the --enable-preconnection flag is turned on. I'm expecting to enable this feature by default soon, so as to better tune the parameters. BUG=42694 r=mbelshe Review URL: http://codereview.chromium.org/3032014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54044 0039d316-1c4b-4281-b951-d872f2087c98
* Compress and checksum pending logs that are going to be persisted. Persisted ↵ziadh@chromium.org2010-07-191-1/+1
| | | | | | | | | | | | | | | | logs now have the following format: [list_size, log1, log2, ..., log_n, checksum]. where each log is bzipped before being written. Upon reading the logs from disk, we verify the data and register whether we faced corruptions or not. r=jar Review URL: http://codereview.chromium.org/2936005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52885 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Dns prefetching files to Predictor filesjar@chromium.org2010-06-271-0/+439
We are now doing more than DNS pre-resolution, and want to do TCP/IP pre-warming. This change uses the updated class names etc., and tries to use Predictor as the common element in most names. r=mbelshe Review URL: http://codereview.chromium.org/2866026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50951 0039d316-1c4b-4281-b951-d872f2087c98