Chromium Code Reviews

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 62044: Make the RenderViewHostFactory a global. This prevents us from having to pass... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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...)
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_
OLDNEW
« no previous file with comments | « chrome/browser/navigation_controller_unittest.cc ('k') | chrome/browser/renderer_host/render_view_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine