Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: chrome/renderer/render_view.cc

Issue 2658006: Experiment for number of persistent connections to server... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 4553 matching lines...) Expand 10 before | Expand all | Expand 10 after
4564 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName( 4564 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName(
4565 "Renderer4.BeginToFinish_LinkLoadStaleOk", "DnsImpact"), 4565 "Renderer4.BeginToFinish_LinkLoadStaleOk", "DnsImpact"),
4566 begin_to_finish, kBeginToFinishMin, kBeginToFinishMax, 4566 begin_to_finish, kBeginToFinishMin, kBeginToFinishMax,
4567 kBeginToFinishBucketCount); 4567 kBeginToFinishBucketCount);
4568 break; 4568 break;
4569 default: 4569 default:
4570 break; 4570 break;
4571 } 4571 }
4572 } 4572 }
4573 4573
4574 static bool use_conn_impact_histogram(
4575 FieldTrialList::Find("ConnCountImpact") &&
4576 !FieldTrialList::Find("ConnCountImpact")->group_name().empty());
4577 if (use_conn_impact_histogram) {
4578 UMA_HISTOGRAM_ENUMERATION(
4579 FieldTrial::MakeName("Renderer4.Abandoned", "ConnCountImpact"),
4580 abandoned_page ? 1 : 0, 2);
4581 UMA_HISTOGRAM_ENUMERATION(
4582 FieldTrial::MakeName("Renderer4.LoadType", "ConnCountImpact"),
4583 load_type, NavigationState::kLoadTypeMax);
4584 switch (load_type) {
4585 case NavigationState::NORMAL_LOAD:
4586 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName(
4587 "Renderer4.BeginToFinish_NormalLoad", "ConnCountImpact"),
4588 begin_to_finish, kBeginToFinishMin, kBeginToFinishMax,
4589 kBeginToFinishBucketCount);
4590 break;
4591 case NavigationState::LINK_LOAD_NORMAL:
4592 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName(
4593 "Renderer4.BeginToFinish_LinkLoadNormal", "ConnCountImpact"),
4594 begin_to_finish, kBeginToFinishMin, kBeginToFinishMax,
4595 kBeginToFinishBucketCount);
4596 break;
4597 case NavigationState::LINK_LOAD_RELOAD:
4598 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName(
4599 "Renderer4.BeginToFinish_LinkLoadReload", "ConnCountImpact"),
4600 begin_to_finish, kBeginToFinishMin, kBeginToFinishMax,
4601 kBeginToFinishBucketCount);
4602 break;
4603 case NavigationState::LINK_LOAD_CACHE_STALE_OK:
4604 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName(
4605 "Renderer4.BeginToFinish_LinkLoadStaleOk", "ConnCountImpact"),
4606 begin_to_finish, kBeginToFinishMin, kBeginToFinishMax,
4607 kBeginToFinishBucketCount);
4608 break;
4609 default:
4610 break;
4611 }
4612 }
4613
4574 static bool use_sdch_histogram(FieldTrialList::Find("GlobalSdch") && 4614 static bool use_sdch_histogram(FieldTrialList::Find("GlobalSdch") &&
4575 !FieldTrialList::Find("GlobalSdch")->group_name().empty()); 4615 !FieldTrialList::Find("GlobalSdch")->group_name().empty());
4576 if (use_sdch_histogram) { 4616 if (use_sdch_histogram) {
4577 UMA_HISTOGRAM_ENUMERATION( 4617 UMA_HISTOGRAM_ENUMERATION(
4578 FieldTrial::MakeName("Renderer4.LoadType", "GlobalSdch"), 4618 FieldTrial::MakeName("Renderer4.LoadType", "GlobalSdch"),
4579 load_type, NavigationState::kLoadTypeMax); 4619 load_type, NavigationState::kLoadTypeMax);
4580 switch (load_type) { 4620 switch (load_type) {
4581 case NavigationState::NORMAL_LOAD: 4621 case NavigationState::NORMAL_LOAD:
4582 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName( 4622 UMA_HISTOGRAM_CUSTOM_TIMES(FieldTrial::MakeName(
4583 "Renderer4.BeginToFinish_NormalLoad", "GlobalSdch"), 4623 "Renderer4.BeginToFinish_NormalLoad", "GlobalSdch"),
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
5070 webkit_glue::FormData form; 5110 webkit_glue::FormData form;
5071 const WebInputElement element = node.toConst<WebInputElement>(); 5111 const WebInputElement element = node.toConst<WebInputElement>();
5072 if (!form_manager_.FindFormWithFormControlElement( 5112 if (!form_manager_.FindFormWithFormControlElement(
5073 element, FormManager::REQUIRE_NONE, &form)) 5113 element, FormManager::REQUIRE_NONE, &form))
5074 return; 5114 return;
5075 5115
5076 autofill_action_ = action; 5116 autofill_action_ = action;
5077 Send(new ViewHostMsg_FillAutoFillFormData( 5117 Send(new ViewHostMsg_FillAutoFillFormData(
5078 routing_id_, autofill_query_id_, form, value, label)); 5118 routing_id_, autofill_query_id_, form, value, label));
5079 } 5119 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698