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 // 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/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.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/base_switches.h" | 18 #include "base/base_switches.h" |
19 #include "base/bind.h" | 19 #include "base/bind.h" |
20 #include "base/bind_helpers.h" | 20 #include "base/bind_helpers.h" |
21 #include "base/callback.h" | 21 #include "base/callback.h" |
22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
23 #include "base/debug/trace_event.h" | 23 #include "base/debug/trace_event.h" |
24 #include "base/lazy_instance.h" | 24 #include "base/lazy_instance.h" |
25 #include "base/logging.h" | 25 #include "base/logging.h" |
26 #include "base/metrics/field_trial.h" | 26 #include "base/metrics/field_trial.h" |
27 #include "base/metrics/histogram.h" | 27 #include "base/metrics/histogram.h" |
28 #include "base/path_service.h" | 28 #include "base/path_service.h" |
29 #include "base/platform_file.h" | 29 #include "base/platform_file.h" |
30 #include "base/process_util.h" | |
31 #include "base/rand_util.h" | 30 #include "base/rand_util.h" |
32 #include "base/stl_util.h" | 31 #include "base/stl_util.h" |
33 #include "base/strings/string_util.h" | 32 #include "base/strings/string_util.h" |
34 #include "base/supports_user_data.h" | 33 #include "base/supports_user_data.h" |
35 #include "base/sys_info.h" | 34 #include "base/sys_info.h" |
36 #include "base/threading/thread.h" | 35 #include "base/threading/thread.h" |
37 #include "base/threading/thread_restrictions.h" | 36 #include "base/threading/thread_restrictions.h" |
38 #include "base/tracked_objects.h" | 37 #include "base/tracked_objects.h" |
39 #include "cc/base/switches.h" | 38 #include "cc/base/switches.h" |
40 #include "content/browser/appcache/appcache_dispatcher_host.h" | 39 #include "content/browser/appcache/appcache_dispatcher_host.h" |
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 // Skip widgets in other processes. | 1799 // Skip widgets in other processes. |
1801 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1800 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1802 continue; | 1801 continue; |
1803 | 1802 |
1804 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1803 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1805 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1804 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1806 } | 1805 } |
1807 } | 1806 } |
1808 | 1807 |
1809 } // namespace content | 1808 } // namespace content |
OLD | NEW |