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_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 635 matching lines...) Loading... |
646 bool is_waiting_for_unload_ack_; | 646 bool is_waiting_for_unload_ack_; |
647 | 647 |
648 bool are_javascript_messages_suppressed_; | 648 bool are_javascript_messages_suppressed_; |
649 | 649 |
650 // Handles processing IPC messages request extension functions be executed. | 650 // Handles processing IPC messages request extension functions be executed. |
651 ExtensionFunctionDispatcher extension_function_dispatcher_; | 651 ExtensionFunctionDispatcher extension_function_dispatcher_; |
652 | 652 |
653 DISALLOW_EVIL_CONSTRUCTORS(RenderViewHost); | 653 DISALLOW_EVIL_CONSTRUCTORS(RenderViewHost); |
654 }; | 654 }; |
655 | 655 |
656 // Factory for creating RenderViewHosts. Useful for unit tests. | |
657 class RenderViewHostFactory { | |
658 public: | |
659 virtual ~RenderViewHostFactory() {} | |
660 | |
661 virtual RenderViewHost* CreateRenderViewHost( | |
662 SiteInstance* instance, | |
663 RenderViewHostDelegate* delegate, | |
664 int routing_id, | |
665 base::WaitableEvent* modal_dialog_event) = 0; | |
666 }; | |
667 | |
668 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 656 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |