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/browser_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 #include "components/prefs/pref_service.h" | 103 #include "components/prefs/pref_service.h" |
104 #include "components/rappor/public/rappor_utils.h" | 104 #include "components/rappor/public/rappor_utils.h" |
105 #include "components/rappor/rappor_service_impl.h" | 105 #include "components/rappor/rappor_service_impl.h" |
106 #include "components/safe_json/safe_json_parser.h" | 106 #include "components/safe_json/safe_json_parser.h" |
107 #include "components/signin/core/common/profile_management_switches.h" | 107 #include "components/signin/core/common/profile_management_switches.h" |
108 #include "components/subresource_filter/content/browser/content_ruleset_service.
h" | 108 #include "components/subresource_filter/content/browser/content_ruleset_service.
h" |
109 #include "components/subresource_filter/core/browser/ruleset_service.h" | 109 #include "components/subresource_filter/core/browser/ruleset_service.h" |
110 #include "components/subresource_filter/core/browser/subresource_filter_constant
s.h" | 110 #include "components/subresource_filter/core/browser/subresource_filter_constant
s.h" |
111 #include "components/subresource_filter/core/browser/subresource_filter_features
.h" | 111 #include "components/subresource_filter/core/browser/subresource_filter_features
.h" |
112 #include "components/translate/core/browser/translate_download_manager.h" | 112 #include "components/translate/core/browser/translate_download_manager.h" |
| 113 #include "components/ukm/ukm_service.h" |
113 #include "components/update_client/update_query_params.h" | 114 #include "components/update_client/update_query_params.h" |
114 #include "components/web_resource/web_resource_pref_names.h" | 115 #include "components/web_resource/web_resource_pref_names.h" |
115 #include "content/public/browser/browser_thread.h" | 116 #include "content/public/browser/browser_thread.h" |
116 #include "content/public/browser/child_process_security_policy.h" | 117 #include "content/public/browser/child_process_security_policy.h" |
117 #include "content/public/browser/notification_details.h" | 118 #include "content/public/browser/notification_details.h" |
118 #include "content/public/browser/plugin_service.h" | 119 #include "content/public/browser/plugin_service.h" |
119 #include "content/public/browser/render_process_host.h" | 120 #include "content/public/browser/render_process_host.h" |
120 #include "content/public/browser/resource_dispatcher_host.h" | 121 #include "content/public/browser/resource_dispatcher_host.h" |
121 #include "content/public/browser/service_worker_context.h" | 122 #include "content/public/browser/service_worker_context.h" |
122 #include "content/public/browser/storage_partition.h" | 123 #include "content/public/browser/storage_partition.h" |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 metrics::MetricsService* BrowserProcessImpl::metrics_service() { | 555 metrics::MetricsService* BrowserProcessImpl::metrics_service() { |
555 DCHECK(CalledOnValidThread()); | 556 DCHECK(CalledOnValidThread()); |
556 return GetMetricsServicesManager()->GetMetricsService(); | 557 return GetMetricsServicesManager()->GetMetricsService(); |
557 } | 558 } |
558 | 559 |
559 rappor::RapporServiceImpl* BrowserProcessImpl::rappor_service() { | 560 rappor::RapporServiceImpl* BrowserProcessImpl::rappor_service() { |
560 DCHECK(CalledOnValidThread()); | 561 DCHECK(CalledOnValidThread()); |
561 return GetMetricsServicesManager()->GetRapporServiceImpl(); | 562 return GetMetricsServicesManager()->GetRapporServiceImpl(); |
562 } | 563 } |
563 | 564 |
564 ukm::UkmService* BrowserProcessImpl::ukm_service() { | 565 ukm::UkmRecorder* BrowserProcessImpl::ukm_recorder() { |
565 DCHECK(CalledOnValidThread()); | 566 DCHECK(CalledOnValidThread()); |
566 return GetMetricsServicesManager()->GetUkmService(); | 567 return GetMetricsServicesManager()->GetUkmService(); |
567 } | 568 } |
568 | 569 |
569 IOThread* BrowserProcessImpl::io_thread() { | 570 IOThread* BrowserProcessImpl::io_thread() { |
570 DCHECK(CalledOnValidThread()); | 571 DCHECK(CalledOnValidThread()); |
571 DCHECK(io_thread_.get()); | 572 DCHECK(io_thread_.get()); |
572 return io_thread_.get(); | 573 return io_thread_.get(); |
573 } | 574 } |
574 | 575 |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 } | 1422 } |
1422 | 1423 |
1423 void BrowserProcessImpl::OnAutoupdateTimer() { | 1424 void BrowserProcessImpl::OnAutoupdateTimer() { |
1424 if (CanAutorestartForUpdate()) { | 1425 if (CanAutorestartForUpdate()) { |
1425 DLOG(WARNING) << "Detected update. Restarting browser."; | 1426 DLOG(WARNING) << "Detected update. Restarting browser."; |
1426 RestartBackgroundInstance(); | 1427 RestartBackgroundInstance(); |
1427 } | 1428 } |
1428 } | 1429 } |
1429 | 1430 |
1430 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1431 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |