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

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

Issue 2443103002: service worker: Implement NavigationPreloadManager.getState (Closed)
Patch Set: update histograms Created 4 years, 1 month 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 BrowserMessageFilter; 9 class BrowserMessageFilter;
10 class RenderProcessHost; 10 class RenderProcessHost;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 DSH_NOT_ALLOCATED_SESSION_ID = 136, 160 DSH_NOT_ALLOCATED_SESSION_ID = 136,
161 DSH_DELETED_SESSION_ID = 137, 161 DSH_DELETED_SESSION_ID = 137,
162 DSH_WRONG_STORAGE_PARTITION = 138, 162 DSH_WRONG_STORAGE_PARTITION = 138,
163 BDH_DISALLOWED_ORIGIN = 139, 163 BDH_DISALLOWED_ORIGIN = 139,
164 ARH_CREATED_STREAM_WITHOUT_AUTHORIZATION = 140, 164 ARH_CREATED_STREAM_WITHOUT_AUTHORIZATION = 140,
165 MDDH_INVALID_DEVICE_TYPE_REQUEST = 141, 165 MDDH_INVALID_DEVICE_TYPE_REQUEST = 141,
166 MDDH_UNAUTHORIZED_ORIGIN = 142, 166 MDDH_UNAUTHORIZED_ORIGIN = 142,
167 SWDH_ENABLE_NAVIGATION_PRELOAD_NO_HOST = 143, 167 SWDH_ENABLE_NAVIGATION_PRELOAD_NO_HOST = 143,
168 SWDH_ENABLE_NAVIGATION_PRELOAD_INVALID_ORIGIN = 144, 168 SWDH_ENABLE_NAVIGATION_PRELOAD_INVALID_ORIGIN = 144,
169 SWDH_ENABLE_NAVIGATION_PRELOAD_BAD_REGISTRATION_ID = 145, 169 SWDH_ENABLE_NAVIGATION_PRELOAD_BAD_REGISTRATION_ID = 145,
170 SWDH_GET_NAVIGATION_PRELOAD_STATE_NO_HOST = 143,
rkaplow 2016/10/25 15:30:16 you're duplicating ids here
falken 2016/10/25 23:55:58 Done.
171 SWDH_GET_NAVIGATION_PRELOAD_STATE_INVALID_ORIGIN = 144,
172 SWDH_GET_NAVIGATION_PRELOAD_STATE_BAD_REGISTRATION_ID = 145,
170 173
171 // Please add new elements here. The naming convention is abbreviated class 174 // Please add new elements here. The naming convention is abbreviated class
172 // name (e.g. RenderFrameHost becomes RFH) plus a unique description of the 175 // name (e.g. RenderFrameHost becomes RFH) plus a unique description of the
173 // reason. After making changes, you MUST update histograms.xml by running: 176 // reason. After making changes, you MUST update histograms.xml by running:
174 // "python tools/metrics/histograms/update_bad_message_reasons.py" 177 // "python tools/metrics/histograms/update_bad_message_reasons.py"
175 BAD_MESSAGE_MAX 178 BAD_MESSAGE_MAX
176 }; 179 };
177 180
178 // Called when the browser receives a bad IPC message from a renderer process on 181 // Called when the browser receives a bad IPC message from a renderer process on
179 // the UI thread. Logs the event, records a histogram metric for the |reason|, 182 // the UI thread. Logs the event, records a histogram metric for the |reason|,
180 // and terminates the process for |host|. 183 // and terminates the process for |host|.
181 void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason); 184 void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason);
182 185
183 // Equivalent to the above, but callable from any thread. 186 // Equivalent to the above, but callable from any thread.
184 void ReceivedBadMessage(int render_process_id, BadMessageReason reason); 187 void ReceivedBadMessage(int render_process_id, BadMessageReason reason);
185 188
186 // Called when a browser message filter receives a bad IPC message from a 189 // Called when a browser message filter receives a bad IPC message from a
187 // renderer or other child process. Logs the event, records a histogram metric 190 // renderer or other child process. Logs the event, records a histogram metric
188 // for the |reason|, and terminates the process for |filter|. 191 // for the |reason|, and terminates the process for |filter|.
189 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); 192 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason);
190 193
191 } // namespace bad_message 194 } // namespace bad_message
192 } // namespace content 195 } // namespace content
193 196
194 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ 197 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698