OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/browser_render_process_host.h" | 8 #include "content/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <limits> | 11 #include <limits> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #if defined(OS_POSIX) | 14 #if defined(OS_POSIX) |
15 #include <utility> // for pair<> | 15 #include <utility> // for pair<> |
16 #endif | 16 #endif |
17 | 17 |
18 #include "base/callback.h" | 18 #include "base/callback.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/metrics/field_trial.h" | 21 #include "base/metrics/field_trial.h" |
22 #include "base/metrics/histogram.h" | 22 #include "base/metrics/histogram.h" |
23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
24 #include "base/platform_file.h" | 24 #include "base/platform_file.h" |
25 #include "base/stl_util-inl.h" | 25 #include "base/stl_util-inl.h" |
26 #include "base/string_util.h" | 26 #include "base/string_util.h" |
27 #include "base/threading/thread.h" | 27 #include "base/threading/thread.h" |
28 #include "base/threading/thread_restrictions.h" | 28 #include "base/threading/thread_restrictions.h" |
29 #include "chrome/browser/browser_process.h" | 29 #include "chrome/browser/browser_process.h" |
30 #include "chrome/browser/history/history.h" | |
31 #include "chrome/browser/platform_util.h" | 30 #include "chrome/browser/platform_util.h" |
32 #include "chrome/browser/profiles/profile.h" | 31 #include "chrome/browser/profiles/profile.h" |
33 #include "chrome/browser/renderer_host/web_cache_manager.h" | 32 #include "chrome/browser/renderer_host/web_cache_manager.h" |
34 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
35 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
36 #include "chrome/common/logging_chrome.h" | 35 #include "chrome/common/logging_chrome.h" |
37 #include "chrome/common/render_messages.h" | 36 #include "chrome/common/render_messages.h" |
38 #include "content/browser/appcache/appcache_dispatcher_host.h" | 37 #include "content/browser/appcache/appcache_dispatcher_host.h" |
39 #include "content/browser/browser_child_process_host.h" | 38 #include "content/browser/browser_child_process_host.h" |
40 #include "content/browser/child_process_security_policy.h" | 39 #include "content/browser/child_process_security_policy.h" |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 while (!queued_messages_.empty()) { | 959 while (!queued_messages_.empty()) { |
961 Send(queued_messages_.front()); | 960 Send(queued_messages_.front()); |
962 queued_messages_.pop(); | 961 queued_messages_.pop(); |
963 } | 962 } |
964 } | 963 } |
965 | 964 |
966 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 965 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
967 const std::string& action) { | 966 const std::string& action) { |
968 UserMetrics::RecordComputedAction(action); | 967 UserMetrics::RecordComputedAction(action); |
969 } | 968 } |
OLD | NEW |