OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 5 #ifndef CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; | 578 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; |
579 | 579 |
580 // If we were asked to RunModal, then this will hold the reply_msg that we | 580 // If we were asked to RunModal, then this will hold the reply_msg that we |
581 // must return to the renderer to unblock it. | 581 // must return to the renderer to unblock it. |
582 IPC::Message* run_modal_reply_msg_; | 582 IPC::Message* run_modal_reply_msg_; |
583 | 583 |
584 bool has_unload_listener_; | 584 bool has_unload_listener_; |
585 | 585 |
586 bool is_waiting_for_unload_ack_; | 586 bool is_waiting_for_unload_ack_; |
587 | 587 |
| 588 bool are_javascript_messages_suppressed_; |
| 589 |
588 DISALLOW_EVIL_CONSTRUCTORS(RenderViewHost); | 590 DISALLOW_EVIL_CONSTRUCTORS(RenderViewHost); |
589 }; | 591 }; |
590 | 592 |
591 // Factory for creating RenderViewHosts. Useful for unit tests. | 593 // Factory for creating RenderViewHosts. Useful for unit tests. |
592 class RenderViewHostFactory { | 594 class RenderViewHostFactory { |
593 public: | 595 public: |
594 virtual ~RenderViewHostFactory() {} | 596 virtual ~RenderViewHostFactory() {} |
595 | 597 |
596 virtual RenderViewHost* CreateRenderViewHost( | 598 virtual RenderViewHost* CreateRenderViewHost( |
597 SiteInstance* instance, | 599 SiteInstance* instance, |
598 RenderViewHostDelegate* delegate, | 600 RenderViewHostDelegate* delegate, |
599 int routing_id, | 601 int routing_id, |
600 HANDLE modal_dialog_event) = 0; | 602 HANDLE modal_dialog_event) = 0; |
601 }; | 603 }; |
602 | 604 |
603 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 605 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
OLD | NEW |