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_process_observer.h" | 5 #include "chrome/renderer/chrome_render_process_observer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <limits> | 9 #include <limits> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
12 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
13 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
15 #include "base/metrics/field_trial.h" | 18 #include "base/metrics/field_trial.h" |
16 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
17 #include "base/metrics/statistics_recorder.h" | 20 #include "base/metrics/statistics_recorder.h" |
18 #include "base/path_service.h" | 21 #include "base/path_service.h" |
19 #include "base/single_thread_task_runner.h" | 22 #include "base/single_thread_task_runner.h" |
20 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
21 #include "base/thread_task_runner_handle.h" | 24 #include "base/thread_task_runner_handle.h" |
22 #include "base/threading/platform_thread.h" | 25 #include "base/threading/platform_thread.h" |
| 26 #include "build/build_config.h" |
23 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
24 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/net/net_resource_provider.h" | 30 #include "chrome/common/net/net_resource_provider.h" |
27 #include "chrome/common/render_messages.h" | 31 #include "chrome/common/render_messages.h" |
28 #include "chrome/common/resource_usage_reporter.mojom.h" | 32 #include "chrome/common/resource_usage_reporter.mojom.h" |
29 #include "chrome/common/resource_usage_reporter_type_converters.h" | 33 #include "chrome/common/resource_usage_reporter_type_converters.h" |
30 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
31 #include "chrome/renderer/content_settings_observer.h" | 35 #include "chrome/renderer/content_settings_observer.h" |
32 #include "chrome/renderer/security_filter_peer.h" | 36 #include "chrome/renderer/security_filter_peer.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 ChromeRenderProcessObserver::content_setting_rules() const { | 334 ChromeRenderProcessObserver::content_setting_rules() const { |
331 return &content_setting_rules_; | 335 return &content_setting_rules_; |
332 } | 336 } |
333 | 337 |
334 void ChromeRenderProcessObserver::OnFieldTrialGroupFinalized( | 338 void ChromeRenderProcessObserver::OnFieldTrialGroupFinalized( |
335 const std::string& trial_name, | 339 const std::string& trial_name, |
336 const std::string& group_name) { | 340 const std::string& group_name) { |
337 content::RenderThread::Get()->Send( | 341 content::RenderThread::Get()->Send( |
338 new ChromeViewHostMsg_FieldTrialActivated(trial_name)); | 342 new ChromeViewHostMsg_FieldTrialActivated(trial_name)); |
339 } | 343 } |
OLD | NEW |