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

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

Issue 2050623005: Move file chooser from RenderView(Host) to RenderFrame(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 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 BrowserMessageFilter; 9 class BrowserMessageFilter;
10 class RenderProcessHost; 10 class RenderProcessHost;
(...skipping 10 matching lines...) Expand all
21 // end. Items may be renamed but do not change the values. We rely on the enum 21 // end. Items may be renamed but do not change the values. We rely on the enum
22 // values in histograms. 22 // values in histograms.
23 enum BadMessageReason { 23 enum BadMessageReason {
24 NC_IN_PAGE_NAVIGATION = 0, 24 NC_IN_PAGE_NAVIGATION = 0,
25 RFH_CAN_COMMIT_URL_BLOCKED = 1, 25 RFH_CAN_COMMIT_URL_BLOCKED = 1,
26 RFH_CAN_ACCESS_FILES_OF_PAGE_STATE = 2, 26 RFH_CAN_ACCESS_FILES_OF_PAGE_STATE = 2,
27 RFH_SANDBOX_FLAGS = 3, 27 RFH_SANDBOX_FLAGS = 3,
28 RFH_NO_PROXY_TO_PARENT = 4, 28 RFH_NO_PROXY_TO_PARENT = 4,
29 RPH_DESERIALIZATION_FAILED = 5, 29 RPH_DESERIALIZATION_FAILED = 5,
30 RVH_CAN_ACCESS_FILES_OF_PAGE_STATE = 6, 30 RVH_CAN_ACCESS_FILES_OF_PAGE_STATE = 6,
31 RVH_FILE_CHOOSER_PATH = 7, 31 RFH_FILE_CHOOSER_PATH = 7,
32 RWH_SYNTHETIC_GESTURE = 8, 32 RWH_SYNTHETIC_GESTURE = 8,
33 RWH_FOCUS = 9, // obsolete; no longer used 33 RWH_FOCUS = 9, // obsolete; no longer used
34 RWH_BLUR = 10, 34 RWH_BLUR = 10,
35 RWH_SHARED_BITMAP = 11, 35 RWH_SHARED_BITMAP = 11,
36 RWH_BAD_ACK_MESSAGE = 12, 36 RWH_BAD_ACK_MESSAGE = 12,
37 RWHVA_SHARED_MEMORY = 13, 37 RWHVA_SHARED_MEMORY = 13,
38 SERVICE_WORKER_BAD_URL = 14, 38 SERVICE_WORKER_BAD_URL = 14,
39 WC_INVALID_FRAME_SOURCE = 15, 39 WC_INVALID_FRAME_SOURCE = 15,
40 RWHVM_UNEXPECTED_FRAME_TYPE = 16, 40 RWHVM_UNEXPECTED_FRAME_TYPE = 16,
41 RFPH_DETACH = 17, 41 RFPH_DETACH = 17,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Called when a browser message filter receives a bad IPC message from a 160 // Called when a browser message filter receives a bad IPC message from a
161 // renderer or other child process. Logs the event, records a histogram metric 161 // renderer or other child process. Logs the event, records a histogram metric
162 // for the |reason|, and terminates the process for |filter|. 162 // for the |reason|, and terminates the process for |filter|.
163 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); 163 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason);
164 164
165 } // namespace bad_message 165 } // namespace bad_message
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ 168 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_view_test_client.cc ('k') | content/browser/frame_host/render_frame_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698