OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <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/bind_helpers.h" | 17 #include "base/bind_helpers.h" |
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/debug/crash_logging.h" | 20 #include "base/debug/crash_logging.h" |
21 #include "base/debug/dump_without_crashing.h" | 21 #include "base/debug/dump_without_crashing.h" |
22 #include "base/feature_list.h" | 22 #include "base/feature_list.h" |
23 #include "base/files/file.h" | 23 #include "base/files/file.h" |
24 #include "base/lazy_instance.h" | 24 #include "base/lazy_instance.h" |
25 #include "base/location.h" | 25 #include "base/location.h" |
26 #include "base/logging.h" | 26 #include "base/logging.h" |
27 #include "base/macros.h" | 27 #include "base/macros.h" |
| 28 #include "base/memory/ptr_util.h" |
28 #include "base/memory/ref_counted.h" | 29 #include "base/memory/ref_counted.h" |
29 #include "base/memory/shared_memory.h" | 30 #include "base/memory/shared_memory.h" |
30 #include "base/memory/shared_memory_handle.h" | 31 #include "base/memory/shared_memory_handle.h" |
31 #include "base/metrics/histogram_macros.h" | 32 #include "base/metrics/histogram_macros.h" |
32 #include "base/metrics/persistent_histogram_allocator.h" | 33 #include "base/metrics/persistent_histogram_allocator.h" |
33 #include "base/metrics/persistent_memory_allocator.h" | 34 #include "base/metrics/persistent_memory_allocator.h" |
34 #include "base/process/process_handle.h" | 35 #include "base/process/process_handle.h" |
35 #include "base/rand_util.h" | 36 #include "base/rand_util.h" |
36 #include "base/single_thread_task_runner.h" | 37 #include "base/single_thread_task_runner.h" |
37 #include "base/stl_util.h" | 38 #include "base/stl_util.h" |
(...skipping 2975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3013 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3014 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3014 | 3015 |
3015 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3016 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3016 // Capture the error message in a crash key value. | 3017 // Capture the error message in a crash key value. |
3017 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3018 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3018 bad_message::ReceivedBadMessage(render_process_id, | 3019 bad_message::ReceivedBadMessage(render_process_id, |
3019 bad_message::RPH_MOJO_PROCESS_ERROR); | 3020 bad_message::RPH_MOJO_PROCESS_ERROR); |
3020 } | 3021 } |
3021 | 3022 |
3022 } // namespace content | 3023 } // namespace content |
OLD | NEW |