| 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/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> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/base_switches.h" | 15 #include "base/base_switches.h" |
| 16 #include "base/bind.h" | 16 #include "base/bind.h" |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
| 19 #include "base/location.h" | 19 #include "base/location.h" |
| 20 #include "base/macros.h" | 20 #include "base/macros.h" |
| 21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
| 22 #include "base/metrics/field_trial.h" | 22 #include "base/metrics/field_trial.h" |
| 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/string_number_conversions.h" | 27 #include "base/strings/string_number_conversions.h" |
| 28 #include "base/strings/utf_string_conversions.h" | 28 #include "base/strings/utf_string_conversions.h" |
| 29 #include "base/thread_task_runner_handle.h" | |
| 30 #include "base/threading/platform_thread.h" | 29 #include "base/threading/platform_thread.h" |
| 30 #include "base/threading/thread_task_runner_handle.h" |
| 31 #include "build/build_config.h" | 31 #include "build/build_config.h" |
| 32 #include "chrome/common/child_process_logging.h" | 32 #include "chrome/common/child_process_logging.h" |
| 33 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
| 34 #include "chrome/common/media/media_resource_provider.h" | 34 #include "chrome/common/media/media_resource_provider.h" |
| 35 #include "chrome/common/net/net_resource_provider.h" | 35 #include "chrome/common/net/net_resource_provider.h" |
| 36 #include "chrome/common/render_messages.h" | 36 #include "chrome/common/render_messages.h" |
| 37 #include "chrome/common/resource_usage_reporter.mojom.h" | 37 #include "chrome/common/resource_usage_reporter.mojom.h" |
| 38 #include "chrome/common/resource_usage_reporter_type_converters.h" | 38 #include "chrome/common/resource_usage_reporter_type_converters.h" |
| 39 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "chrome/renderer/content_settings_observer.h" | 40 #include "chrome/renderer/content_settings_observer.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 ChromeRenderThreadObserver::content_setting_rules() const { | 380 ChromeRenderThreadObserver::content_setting_rules() const { |
| 381 return &content_setting_rules_; | 381 return &content_setting_rules_; |
| 382 } | 382 } |
| 383 | 383 |
| 384 void ChromeRenderThreadObserver::OnFieldTrialGroupFinalized( | 384 void ChromeRenderThreadObserver::OnFieldTrialGroupFinalized( |
| 385 const std::string& trial_name, | 385 const std::string& trial_name, |
| 386 const std::string& group_name) { | 386 const std::string& group_name) { |
| 387 content::RenderThread::Get()->Send( | 387 content::RenderThread::Get()->Send( |
| 388 new ChromeViewHostMsg_FieldTrialActivated(trial_name)); | 388 new ChromeViewHostMsg_FieldTrialActivated(trial_name)); |
| 389 } | 389 } |
| OLD | NEW |