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

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

Issue 2451373003: service worker: Implement NavigationPreloadManager.setHeaderValue (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RDH_TRANSFERRING_REQUEST_NOT_FOUND = 146, // Disabled - crbug.com/659613. 170 RDH_TRANSFERRING_REQUEST_NOT_FOUND = 146, // Disabled - crbug.com/659613.
171 RDH_TRANSFERRING_NONNAVIGATIONAL_REQUEST = 147, 171 RDH_TRANSFERRING_NONNAVIGATIONAL_REQUEST = 147,
172 SWDH_GET_NAVIGATION_PRELOAD_STATE_NO_HOST = 148, 172 SWDH_GET_NAVIGATION_PRELOAD_STATE_NO_HOST = 148,
173 SWDH_GET_NAVIGATION_PRELOAD_STATE_INVALID_ORIGIN = 149, 173 SWDH_GET_NAVIGATION_PRELOAD_STATE_INVALID_ORIGIN = 149,
174 SWDH_GET_NAVIGATION_PRELOAD_STATE_BAD_REGISTRATION_ID = 150, 174 SWDH_GET_NAVIGATION_PRELOAD_STATE_BAD_REGISTRATION_ID = 150,
175 SWDH_SET_NAVIGATION_PRELOAD_HEADER_NO_HOST = 151,
176 SWDH_SET_NAVIGATION_PRELOAD_HEADER_INVALID_ORIGIN = 152,
177 SWDH_SET_NAVIGATION_PRELOAD_HEADER_BAD_REGISTRATION_ID = 153,
178 SWDH_SET_NAVIGATION_PRELOAD_HEADER_BAD_VALUE = 154,
175 179
176 // Please add new elements here. The naming convention is abbreviated class 180 // Please add new elements here. The naming convention is abbreviated class
177 // name (e.g. RenderFrameHost becomes RFH) plus a unique description of the 181 // name (e.g. RenderFrameHost becomes RFH) plus a unique description of the
178 // reason. After making changes, you MUST update histograms.xml by running: 182 // reason. After making changes, you MUST update histograms.xml by running:
179 // "python tools/metrics/histograms/update_bad_message_reasons.py" 183 // "python tools/metrics/histograms/update_bad_message_reasons.py"
180 BAD_MESSAGE_MAX 184 BAD_MESSAGE_MAX
181 }; 185 };
182 186
183 // Called when the browser receives a bad IPC message from a renderer process on 187 // Called when the browser receives a bad IPC message from a renderer process on
184 // the UI thread. Logs the event, records a histogram metric for the |reason|, 188 // the UI thread. Logs the event, records a histogram metric for the |reason|,
185 // and terminates the process for |host|. 189 // and terminates the process for |host|.
186 void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason); 190 void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason);
187 191
188 // Equivalent to the above, but callable from any thread. 192 // Equivalent to the above, but callable from any thread.
189 void ReceivedBadMessage(int render_process_id, BadMessageReason reason); 193 void ReceivedBadMessage(int render_process_id, BadMessageReason reason);
190 194
191 // Called when a browser message filter receives a bad IPC message from a 195 // Called when a browser message filter receives a bad IPC message from a
192 // renderer or other child process. Logs the event, records a histogram metric 196 // renderer or other child process. Logs the event, records a histogram metric
193 // for the |reason|, and terminates the process for |filter|. 197 // for the |reason|, and terminates the process for |filter|.
194 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); 198 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason);
195 199
196 } // namespace bad_message 200 } // namespace bad_message
197 } // namespace content 201 } // namespace content
198 202
199 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ 203 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698