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

Side by Side Diff: content/browser/renderer_host/render_view_host.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: 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 const std::string& origin, 594 const std::string& origin,
595 const std::string& target); 595 const std::string& target);
596 void OnMsgSetTooltipText(const std::wstring& tooltip_text, 596 void OnMsgSetTooltipText(const std::wstring& tooltip_text,
597 WebKit::WebTextDirection text_direction_hint); 597 WebKit::WebTextDirection text_direction_hint);
598 void OnMsgSelectionChanged(const std::string& text); 598 void OnMsgSelectionChanged(const std::string& text);
599 void OnMsgPasteFromSelectionClipboard(); 599 void OnMsgPasteFromSelectionClipboard();
600 void OnMsgRunJavaScriptMessage(const std::wstring& message, 600 void OnMsgRunJavaScriptMessage(const std::wstring& message,
601 const std::wstring& default_prompt, 601 const std::wstring& default_prompt,
602 const GURL& frame_url, 602 const GURL& frame_url,
603 const int flags, 603 const int flags,
604 const bool unload_handler_being_run,
604 IPC::Message* reply_msg); 605 IPC::Message* reply_msg);
605 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 606 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
606 const std::wstring& message, 607 const std::wstring& message,
607 IPC::Message* reply_msg); 608 IPC::Message* reply_msg);
608 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height, 609 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height,
609 const std::string& json_arguments, 610 const std::string& json_arguments,
610 IPC::Message* reply_msg); 611 IPC::Message* reply_msg);
611 void OnMsgStartDragging(const WebDropData& drop_data, 612 void OnMsgStartDragging(const WebDropData& drop_data,
612 WebKit::WebDragOperationsMask operations_allowed, 613 WebKit::WebDragOperationsMask operations_allowed,
613 const SkBitmap& image, 614 const SkBitmap& image,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 // The termination status of the last render view that terminated. 735 // The termination status of the last render view that terminated.
735 base::TerminationStatus render_view_termination_status_; 736 base::TerminationStatus render_view_termination_status_;
736 737
737 // The enabled/disabled states of various commands. 738 // The enabled/disabled states of various commands.
738 std::map<RenderViewCommand, CommandState> command_states_; 739 std::map<RenderViewCommand, CommandState> command_states_;
739 740
740 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 741 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
741 }; 742 };
742 743
743 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 744 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698