OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/loader/chrome_resource_dispatcher_host_delegate.h" | 5 #include "chrome/browser/loader/chrome_resource_dispatcher_host_delegate.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "chrome/browser/tab_contents/tab_util.h" | 41 #include "chrome/browser/tab_contents/tab_util.h" |
42 #include "chrome/browser/ui/login/login_handler.h" | 42 #include "chrome/browser/ui/login/login_handler.h" |
43 #include "chrome/common/chrome_switches.h" | 43 #include "chrome/common/chrome_switches.h" |
44 #include "chrome/common/features.h" | 44 #include "chrome/common/features.h" |
45 #include "chrome/common/url_constants.h" | 45 #include "chrome/common/url_constants.h" |
46 #include "components/content_settings/core/browser/host_content_settings_map.h" | 46 #include "components/content_settings/core/browser/host_content_settings_map.h" |
47 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data
.h" | 47 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data
.h" |
48 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 48 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
49 #include "components/google/core/browser/google_util.h" | 49 #include "components/google/core/browser/google_util.h" |
50 #include "components/policy/core/common/cloud/policy_header_io_helper.h" | 50 #include "components/policy/core/common/cloud/policy_header_io_helper.h" |
51 #include "components/rappor/rappor_utils.h" | 51 #include "components/rappor/public/rappor_utils.h" |
| 52 #include "components/rappor/rappor_service_impl.h" |
52 #include "components/search_engines/template_url_service.h" | 53 #include "components/search_engines/template_url_service.h" |
53 #include "components/variations/net/variations_http_headers.h" | 54 #include "components/variations/net/variations_http_headers.h" |
54 #include "content/public/browser/browser_thread.h" | 55 #include "content/public/browser/browser_thread.h" |
55 #include "content/public/browser/navigation_data.h" | 56 #include "content/public/browser/navigation_data.h" |
56 #include "content/public/browser/notification_service.h" | 57 #include "content/public/browser/notification_service.h" |
57 #include "content/public/browser/plugin_service.h" | 58 #include "content/public/browser/plugin_service.h" |
58 #include "content/public/browser/plugin_service_filter.h" | 59 #include "content/public/browser/plugin_service_filter.h" |
59 #include "content/public/browser/render_frame_host.h" | 60 #include "content/public/browser/render_frame_host.h" |
60 #include "content/public/browser/render_process_host.h" | 61 #include "content/public/browser/render_process_host.h" |
61 #include "content/public/browser/render_view_host.h" | 62 #include "content/public/browser/render_view_host.h" |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 base::Bind(&ChromeResourceDispatcherHostDelegate::OnAbortedFrameLoad, | 884 base::Bind(&ChromeResourceDispatcherHostDelegate::OnAbortedFrameLoad, |
884 base::Unretained(this), url, request_loading_time)); | 885 base::Unretained(this), url, request_loading_time)); |
885 return; | 886 return; |
886 } | 887 } |
887 | 888 |
888 std::string metric_name = (request_loading_time.InMilliseconds() < 100 ? | 889 std::string metric_name = (request_loading_time.InMilliseconds() < 100 ? |
889 "Net.ErrAborted.Fast" : "Net.ErrAborted.Slow"); | 890 "Net.ErrAborted.Fast" : "Net.ErrAborted.Slow"); |
890 rappor::SampleDomainAndRegistryFromGURL( | 891 rappor::SampleDomainAndRegistryFromGURL( |
891 g_browser_process->rappor_service(), metric_name, url); | 892 g_browser_process->rappor_service(), metric_name, url); |
892 } | 893 } |
OLD | NEW |