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

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

Issue 2732213004: Move FieldTrialRecorder mojom to content (Closed)
Patch Set: fix manifest Created 3 years, 9 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
OLDNEW
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/renderer/chrome_render_thread_observer.h" 5 #include "chrome/renderer/chrome_render_thread_observer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 #include "base/metrics/histogram.h" 23 #include "base/metrics/histogram.h"
24 #include "base/metrics/statistics_recorder.h" 24 #include "base/metrics/statistics_recorder.h"
25 #include "base/path_service.h" 25 #include "base/path_service.h"
26 #include "base/single_thread_task_runner.h" 26 #include "base/single_thread_task_runner.h"
27 #include "base/strings/utf_string_conversions.h" 27 #include "base/strings/utf_string_conversions.h"
28 #include "base/threading/platform_thread.h" 28 #include "base/threading/platform_thread.h"
29 #include "base/threading/thread_task_runner_handle.h" 29 #include "base/threading/thread_task_runner_handle.h"
30 #include "build/build_config.h" 30 #include "build/build_config.h"
31 #include "chrome/common/child_process_logging.h" 31 #include "chrome/common/child_process_logging.h"
32 #include "chrome/common/chrome_paths.h" 32 #include "chrome/common/chrome_paths.h"
33 #include "chrome/common/field_trial_recorder.mojom.h"
34 #include "chrome/common/media/media_resource_provider.h" 33 #include "chrome/common/media/media_resource_provider.h"
35 #include "chrome/common/net/net_resource_provider.h" 34 #include "chrome/common/net/net_resource_provider.h"
36 #include "chrome/common/render_messages.h" 35 #include "chrome/common/render_messages.h"
37 #include "chrome/common/resource_usage_reporter.mojom.h" 36 #include "chrome/common/resource_usage_reporter.mojom.h"
38 #include "chrome/common/resource_usage_reporter_type_converters.h" 37 #include "chrome/common/resource_usage_reporter_type_converters.h"
39 #include "chrome/common/url_constants.h" 38 #include "chrome/common/url_constants.h"
40 #include "chrome/renderer/content_settings_observer.h" 39 #include "chrome/renderer/content_settings_observer.h"
41 #include "chrome/renderer/security_filter_peer.h" 40 #include "chrome/renderer/security_filter_peer.h"
42 #include "components/visitedlink/renderer/visitedlink_slave.h" 41 #include "components/visitedlink/renderer/visitedlink_slave.h"
43 #include "content/public/child/resource_dispatcher_delegate.h" 42 #include "content/public/child/resource_dispatcher_delegate.h"
44 #include "content/public/common/associated_interface_registry.h" 43 #include "content/public/common/associated_interface_registry.h"
45 #include "content/public/common/content_switches.h" 44 #include "content/public/common/content_switches.h"
45 #include "content/public/common/field_trial_recorder.mojom.h"
46 #include "content/public/renderer/render_thread.h" 46 #include "content/public/renderer/render_thread.h"
47 #include "content/public/renderer/render_view.h" 47 #include "content/public/renderer/render_view.h"
48 #include "content/public/renderer/render_view_visitor.h" 48 #include "content/public/renderer/render_view_visitor.h"
49 #include "extensions/features/features.h" 49 #include "extensions/features/features.h"
50 #include "media/base/localized_strings.h" 50 #include "media/base/localized_strings.h"
51 #include "mojo/public/cpp/bindings/strong_binding.h" 51 #include "mojo/public/cpp/bindings/strong_binding.h"
52 #include "net/base/net_errors.h" 52 #include "net/base/net_errors.h"
53 #include "net/base/net_module.h" 53 #include "net/base/net_module.h"
54 #include "services/service_manager/public/cpp/interface_provider.h" 54 #include "services/service_manager/public/cpp/interface_provider.h"
55 #include "services/service_manager/public/cpp/interface_registry.h" 55 #include "services/service_manager/public/cpp/interface_registry.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void ChromeRenderThreadObserver::OnRenderProcessShutdown() { 291 void ChromeRenderThreadObserver::OnRenderProcessShutdown() {
292 visited_link_slave_.reset(); 292 visited_link_slave_.reset();
293 293
294 // Workaround for http://crbug.com/672646 294 // Workaround for http://crbug.com/672646
295 renderer_configuration_bindings_.CloseAllBindings(); 295 renderer_configuration_bindings_.CloseAllBindings();
296 } 296 }
297 297
298 void ChromeRenderThreadObserver::OnFieldTrialGroupFinalized( 298 void ChromeRenderThreadObserver::OnFieldTrialGroupFinalized(
299 const std::string& trial_name, 299 const std::string& trial_name,
300 const std::string& group_name) { 300 const std::string& group_name) {
301 chrome::mojom::FieldTrialRecorderPtr field_trial_recorder; 301 content::mojom::FieldTrialRecorderPtr field_trial_recorder;
302 content::RenderThread::Get()->GetRemoteInterfaces()->GetInterface( 302 content::RenderThread::Get()->GetRemoteInterfaces()->GetInterface(
303 &field_trial_recorder); 303 &field_trial_recorder);
304 field_trial_recorder->FieldTrialActivated(trial_name); 304 field_trial_recorder->FieldTrialActivated(trial_name);
305 } 305 }
306 306
307 void ChromeRenderThreadObserver::SetInitialConfiguration( 307 void ChromeRenderThreadObserver::SetInitialConfiguration(
308 bool is_incognito_process) { 308 bool is_incognito_process) {
309 is_incognito_process_ = is_incognito_process; 309 is_incognito_process_ = is_incognito_process;
310 } 310 }
311 311
(...skipping 10 matching lines...) Expand all
322 322
323 void ChromeRenderThreadObserver::OnRendererConfigurationAssociatedRequest( 323 void ChromeRenderThreadObserver::OnRendererConfigurationAssociatedRequest(
324 chrome::mojom::RendererConfigurationAssociatedRequest request) { 324 chrome::mojom::RendererConfigurationAssociatedRequest request) {
325 renderer_configuration_bindings_.AddBinding(this, std::move(request)); 325 renderer_configuration_bindings_.AddBinding(this, std::move(request));
326 } 326 }
327 327
328 const RendererContentSettingRules* 328 const RendererContentSettingRules*
329 ChromeRenderThreadObserver::content_setting_rules() const { 329 ChromeRenderThreadObserver::content_setting_rules() const {
330 return &content_setting_rules_; 330 return &content_setting_rules_;
331 } 331 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698