| 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/alias.h" |
| 20 #include "base/debug/crash_logging.h" | 21 #include "base/debug/crash_logging.h" |
| 21 #include "base/debug/dump_without_crashing.h" | 22 #include "base/debug/dump_without_crashing.h" |
| 22 #include "base/feature_list.h" | 23 #include "base/feature_list.h" |
| 23 #include "base/files/file.h" | 24 #include "base/files/file.h" |
| 24 #include "base/lazy_instance.h" | 25 #include "base/lazy_instance.h" |
| 25 #include "base/location.h" | 26 #include "base/location.h" |
| 26 #include "base/logging.h" | 27 #include "base/logging.h" |
| 27 #include "base/macros.h" | 28 #include "base/macros.h" |
| 28 #include "base/memory/ptr_util.h" | 29 #include "base/memory/ptr_util.h" |
| 29 #include "base/memory/ref_counted.h" | 30 #include "base/memory/ref_counted.h" |
| (...skipping 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3071 | 3072 |
| 3072 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3073 // Capture the error message in a crash key value. | 3074 // Capture the error message in a crash key value. |
| 3074 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3075 bad_message::ReceivedBadMessage(render_process_id, | 3076 bad_message::ReceivedBadMessage(render_process_id, |
| 3076 bad_message::RPH_MOJO_PROCESS_ERROR); | 3077 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3077 } | 3078 } |
| 3078 | 3079 |
| 3079 } // namespace content | 3080 } // namespace content |
| OLD | NEW |