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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 10383281: Merge 136701 - Disable the hang dialog detector when showModalDialog is running. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 7 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 | « no previous file | content/browser/renderer_host/render_view_host_impl.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 (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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 virtual void OnMsgFocus() OVERRIDE; 422 virtual void OnMsgFocus() OVERRIDE;
423 virtual void OnMsgBlur() OVERRIDE; 423 virtual void OnMsgBlur() OVERRIDE;
424 424
425 // IPC message handlers. 425 // IPC message handlers.
426 void OnMsgShowView(int route_id, 426 void OnMsgShowView(int route_id,
427 WindowOpenDisposition disposition, 427 WindowOpenDisposition disposition,
428 const gfx::Rect& initial_pos, 428 const gfx::Rect& initial_pos,
429 bool user_gesture); 429 bool user_gesture);
430 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); 430 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos);
431 void OnMsgShowFullscreenWidget(int route_id); 431 void OnMsgShowFullscreenWidget(int route_id);
432 void OnMsgRunModal(IPC::Message* reply_msg); 432 void OnMsgRunModal(int opener_id, IPC::Message* reply_msg);
433 void OnMsgRenderViewReady(); 433 void OnMsgRenderViewReady();
434 void OnMsgRenderViewGone(int status, int error_code); 434 void OnMsgRenderViewGone(int status, int error_code);
435 void OnMsgNavigate(const IPC::Message& msg); 435 void OnMsgNavigate(const IPC::Message& msg);
436 void OnMsgUpdateState(int32 page_id, 436 void OnMsgUpdateState(int32 page_id,
437 const std::string& state); 437 const std::string& state);
438 void OnMsgUpdateTitle(int32 page_id, 438 void OnMsgUpdateTitle(int32 page_id,
439 const string16& title, 439 const string16& title,
440 WebKit::WebTextDirection title_direction); 440 WebKit::WebTextDirection title_direction);
441 void OnMsgUpdateEncoding(const std::string& encoding); 441 void OnMsgUpdateEncoding(const std::string& encoding);
442 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); 442 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // navigation occurs. 563 // navigation occurs.
564 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; 564 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_;
565 565
566 // Whether this RenderViewHost is currently swapped out, such that the view is 566 // Whether this RenderViewHost is currently swapped out, such that the view is
567 // being rendered by another process. 567 // being rendered by another process.
568 bool is_swapped_out_; 568 bool is_swapped_out_;
569 569
570 // If we were asked to RunModal, then this will hold the reply_msg that we 570 // If we were asked to RunModal, then this will hold the reply_msg that we
571 // must return to the renderer to unblock it. 571 // must return to the renderer to unblock it.
572 IPC::Message* run_modal_reply_msg_; 572 IPC::Message* run_modal_reply_msg_;
573 // This will hold the routing id of the RenderView that opened us.
574 int run_modal_opener_id_;
573 575
574 // Set to true when there is a pending ViewMsg_ShouldClose message. This 576 // Set to true when there is a pending ViewMsg_ShouldClose message. This
575 // ensures we don't spam the renderer with multiple beforeunload requests. 577 // ensures we don't spam the renderer with multiple beforeunload requests.
576 // When either this value or is_waiting_for_unload_ack_ is true, the value of 578 // When either this value or is_waiting_for_unload_ack_ is true, the value of
577 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a 579 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a
578 // cross-site transition or a tab close attempt. 580 // cross-site transition or a tab close attempt.
579 bool is_waiting_for_beforeunload_ack_; 581 bool is_waiting_for_beforeunload_ack_;
580 582
581 // Set to true when there is a pending ViewMsg_Close message. Also see 583 // Set to true when there is a pending ViewMsg_Close message. Also see
582 // is_waiting_for_beforeunload_ack_, unload_ack_is_for_cross_site_transition_. 584 // is_waiting_for_beforeunload_ack_, unload_ack_is_for_cross_site_transition_.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 625 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
624 }; 626 };
625 627
626 #if defined(COMPILER_MSVC) 628 #if defined(COMPILER_MSVC)
627 #pragma warning(pop) 629 #pragma warning(pop)
628 #endif 630 #endif
629 631
630 } // namespace content 632 } // namespace content
631 633
632 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698