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

Side by Side Diff: extensions/browser/bad_message.h

Issue 1145013004: Introduce bad_message.h for chrome and NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix to extensions/browser/bad_message.h 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef EXTENSIONS_BROWSER_BAD_MESSAGE_H_ 5 #ifndef EXTENSIONS_BROWSER_BAD_MESSAGE_H_
6 #define EXTENSIONS_BROWSER_BAD_MESSAGE_H_ 6 #define EXTENSIONS_BROWSER_BAD_MESSAGE_H_
7 7
8 namespace content { 8 namespace content {
9 class RenderProcessHost; 9 class RenderProcessHost;
10 } 10 }
(...skipping 19 matching lines...) Expand all
30 // reason. 30 // reason.
31 BAD_MESSAGE_MAX 31 BAD_MESSAGE_MAX
32 }; 32 };
33 33
34 // Called when the browser receives a bad IPC message from an extension process. 34 // Called when the browser receives a bad IPC message from an extension process.
35 // Logs the event, records a histogram metric for the |reason|, and terminates 35 // Logs the event, records a histogram metric for the |reason|, and terminates
36 // the process for |host|. 36 // the process for |host|.
37 void ReceivedBadMessage(content::RenderProcessHost* host, 37 void ReceivedBadMessage(content::RenderProcessHost* host,
38 BadMessageReason reason); 38 BadMessageReason reason);
39 39
40 } // bad_message 40 } // namespace bad_message
not at google - send to devlin 2015/05/22 17:36:11 lgtm
41 } // namespace extensions 41 } // namespace extensions
42 42
43 #endif // EXTENSIONS_BROWSER_BAD_MESSAGE_H_ 43 #endif // EXTENSIONS_BROWSER_BAD_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698