Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: components/nacl/browser/bad_message.cc

Issue 1145013004: Introduce bad_message.h for chrome and NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/nacl/browser/bad_message.h ('k') | components/nacl/browser/nacl_file_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/bad_message.cc
diff --git a/content/browser/bad_message.cc b/components/nacl/browser/bad_message.cc
similarity index 51%
copy from content/browser/bad_message.cc
copy to components/nacl/browser/bad_message.cc
index cc41b00bd82fce643d63931134ee855ccb0a1e42..950574e53b5c063b1ed0b2d4dfa54bbb00c0571c 100644
--- a/content/browser/bad_message.cc
+++ b/components/nacl/browser/bad_message.cc
@@ -1,22 +1,23 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/bad_message.h"
-
-#include "base/logging.h"
-#include "base/metrics/histogram_macros.h"
-#include "content/public/browser/render_process_host.h"
-
-namespace content {
-namespace bad_message {
-
-void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason) {
- LOG(ERROR) << "Terminating renderer for bad IPC message, reason " << reason;
- UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.Content", reason,
- BAD_MESSAGE_MAX);
- host->ShutdownForBadMessage();
-}
-
-} // namespace bad_message
-} // namespace content
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/nacl/browser/bad_message.h"
+
+#include "base/logging.h"
+#include "base/metrics/histogram_macros.h"
+#include "content/public/browser/browser_message_filter.h"
+
+namespace nacl {
+namespace bad_message {
+
+void ReceivedBadMessage(content::BrowserMessageFilter* filter,
+ BadMessageReason reason) {
+ LOG(ERROR) << "Terminating renderer for bad IPC message, reason " << reason;
+ UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.NaCl", reason,
+ BAD_MESSAGE_MAX);
+ filter->ShutdownForBadMessage();
+}
+
+} // namespace bad_message
+} // namespace nacl
« no previous file with comments | « components/nacl/browser/bad_message.h ('k') | components/nacl/browser/nacl_file_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698