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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 6627063: Ignore JavaScript messages (alert/confirm/prompt) during unload handlers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added a browsertest Created 9 years, 9 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
« no previous file with comments | « chrome/browser/tab_contents/web_contents_unittest.cc ('k') | chrome/renderer/render_view.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 // Initiates a download based on user actions like 'ALT+click'. 1316 // Initiates a download based on user actions like 'ALT+click'.
1317 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, 1317 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl,
1318 GURL /* url */, 1318 GURL /* url */,
1319 GURL /* referrer */) 1319 GURL /* referrer */)
1320 1320
1321 // Used to go to the session history entry at the given offset (ie, -1 will 1321 // Used to go to the session history entry at the given offset (ie, -1 will
1322 // return the "back" item). 1322 // return the "back" item).
1323 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, 1323 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
1324 int /* offset (from current) of history item to get */) 1324 int /* offset (from current) of history item to get */)
1325 1325
1326 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, 1326 IPC_SYNC_MESSAGE_ROUTED5_2(ViewHostMsg_RunJavaScriptMessage,
1327 std::wstring /* in - alert message */, 1327 std::wstring /* in - alert message */,
1328 std::wstring /* in - default prompt */, 1328 std::wstring /* in - default prompt */,
1329 GURL /* in - originating page URL */, 1329 GURL /* in - originating page URL */,
1330 int /* in - dialog flags */, 1330 int /* in - dialog flags */,
1331 bool /* in - unload handler being run? */,
1331 bool /* out - success */, 1332 bool /* out - success */,
1332 std::wstring /* out - prompt field */) 1333 std::wstring /* out - prompt field */)
1333 1334
1334 // Provides the contents for the given page that was loaded recently. 1335 // Provides the contents for the given page that was loaded recently.
1335 IPC_MESSAGE_ROUTED5(ViewHostMsg_PageContents, 1336 IPC_MESSAGE_ROUTED5(ViewHostMsg_PageContents,
1336 GURL /* URL of the page */, 1337 GURL /* URL of the page */,
1337 int32 /* page id */, 1338 int32 /* page id */,
1338 string16 /* page contents */, 1339 string16 /* page contents */,
1339 std::string /* page ISO639_1 language code */, 1340 std::string /* page ISO639_1 language code */,
1340 bool /* whether the page can be translated */) 1341 bool /* whether the page can be translated */)
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 // while performing stress testing. 2242 // while performing stress testing.
2242 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2243 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2243 int /* cmd */, 2244 int /* cmd */,
2244 int /* param */) 2245 int /* param */)
2245 2246
2246 // Register a new handler for URL requests with the given scheme. 2247 // Register a new handler for URL requests with the given scheme.
2247 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, 2248 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler,
2248 std::string /* scheme */, 2249 std::string /* scheme */,
2249 GURL /* url */, 2250 GURL /* url */,
2250 string16 /* title */) 2251 string16 /* title */)
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_unittest.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698