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

Side by Side Diff: content/common/view_messages.h

Issue 11820009: Distinguish plugin disconnections from plugin crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more comments about the possibility that the ID has been reused. Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) 1995 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog)
1996 1996
1997 // WebKit and JavaScript error messages to log to the console 1997 // WebKit and JavaScript error messages to log to the console
1998 // or debugger UI. 1998 // or debugger UI.
1999 IPC_MESSAGE_ROUTED4(ViewHostMsg_AddMessageToConsole, 1999 IPC_MESSAGE_ROUTED4(ViewHostMsg_AddMessageToConsole,
2000 int32, /* log level */ 2000 int32, /* log level */
2001 string16, /* msg */ 2001 string16, /* msg */
2002 int32, /* line number */ 2002 int32, /* line number */
2003 string16 /* source id */) 2003 string16 /* source id */)
2004 2004
2005 // Sent by the renderer process to indicate that a plugin instance has 2005 // Sent by the renderer process to indicate that a plugin instance has crashed.
2006 // crashed. 2006 // Note: |plugin_pid| should not be trusted. The corresponding process has
2007 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, 2007 // probably died. Moreover, the ID may have been reused by a new process. Any
2008 FilePath /* plugin_path */) 2008 // usage other than displaying it in a prompt to the user is very likely to be
2009 // wrong.
2010 IPC_MESSAGE_ROUTED2(ViewHostMsg_CrashedPlugin,
2011 FilePath /* plugin_path */,
2012 base::ProcessId /* plugin_pid */)
2009 2013
2010 // Displays a box to confirm that the user wants to navigate away from the 2014 // Displays a box to confirm that the user wants to navigate away from the
2011 // page. Replies true if yes, false otherwise, the reply string is ignored, 2015 // page. Replies true if yes, false otherwise, the reply string is ignored,
2012 // but is included so that we can use OnJavaScriptMessageBoxClosed. 2016 // but is included so that we can use OnJavaScriptMessageBoxClosed.
2013 IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunBeforeUnloadConfirm, 2017 IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunBeforeUnloadConfirm,
2014 GURL, /* in - originating frame URL */ 2018 GURL, /* in - originating frame URL */
2015 string16 /* in - alert message */, 2019 string16 /* in - alert message */,
2016 bool /* in - is a reload */, 2020 bool /* in - is a reload */,
2017 bool /* out - success */, 2021 bool /* out - success */,
2018 string16 /* out - This is ignored.*/) 2022 string16 /* out - This is ignored.*/)
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2354 int /* arb_robustness_status_code */) 2358 int /* arb_robustness_status_code */)
2355 2359
2356 #if defined(OS_WIN) 2360 #if defined(OS_WIN)
2357 // Request that the given font characters be loaded by the browser so it's 2361 // Request that the given font characters be loaded by the browser so it's
2358 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2362 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2359 // for details. 2363 // for details.
2360 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2364 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2361 LOGFONT /* font_data */, 2365 LOGFONT /* font_data */,
2362 string16 /* characters */) 2366 string16 /* characters */)
2363 #endif 2367 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698