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

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

Issue 1112823005: Ensure that HistoryController's current entry is updated on inert commits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format 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 CONTENT_BROWSER_BAD_MESSAGE_H_ 5 #ifndef CONTENT_BROWSER_BAD_MESSAGE_H_
6 #define CONTENT_BROWSER_BAD_MESSAGE_H_ 6 #define CONTENT_BROWSER_BAD_MESSAGE_H_
7 7
8 namespace content { 8 namespace content {
9 class RenderProcessHost; 9 class RenderProcessHost;
10 10
(...skipping 21 matching lines...) Expand all
32 RWH_FOCUS, 32 RWH_FOCUS,
33 RWH_BLUR, 33 RWH_BLUR,
34 RWH_SHARED_BITMAP, 34 RWH_SHARED_BITMAP,
35 RWH_BAD_ACK_MESSAGE, 35 RWH_BAD_ACK_MESSAGE,
36 RWHVA_SHARED_MEMORY, 36 RWHVA_SHARED_MEMORY,
37 SERVICE_WORKER_BAD_URL, 37 SERVICE_WORKER_BAD_URL,
38 WC_INVALID_FRAME_SOURCE, 38 WC_INVALID_FRAME_SOURCE,
39 RWHVM_UNEXPECTED_FRAME_TYPE, 39 RWHVM_UNEXPECTED_FRAME_TYPE,
40 RFPH_DETACH, 40 RFPH_DETACH,
41 DFH_BAD_EMBEDDER_MESSAGE, 41 DFH_BAD_EMBEDDER_MESSAGE,
42 NC_AUTO_SUBFRAME,
42 // Please add new elements here. The naming convention is abbreviated class 43 // Please add new elements here. The naming convention is abbreviated class
43 // name (e.g. RenderFrameHost becomes RFH) plus a unique description of the 44 // name (e.g. RenderFrameHost becomes RFH) plus a unique description of the
44 // reason. 45 // reason.
45 BAD_MESSAGE_MAX 46 BAD_MESSAGE_MAX
46 }; 47 };
47 48
48 // Called when the browser receives a bad IPC message from a renderer process. 49 // Called when the browser receives a bad IPC message from a renderer process.
49 // Logs the event, records a histogram metric for the |reason|, and terminates 50 // Logs the event, records a histogram metric for the |reason|, and terminates
50 // the process for |host|. 51 // the process for |host|.
51 void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason); 52 void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason);
52 53
53 } // namespace bad_message 54 } // namespace bad_message
54 } // namespace content 55 } // namespace content
55 56
56 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ 57 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698