| 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 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/extensions/extension_api_handler.h" | 12 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 14 #include "chrome/browser/renderer_host/render_widget_host.h" | 14 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 15 #include "chrome/common/modal_dialog_event.h" | 15 #include "chrome/common/modal_dialog_event.h" |
| 16 #include "chrome/common/page_zoom.h" | 16 #include "chrome/common/page_zoom.h" |
| 17 #ifdef CHROME_PERSONALIZATION | 17 #ifdef CHROME_PERSONALIZATION |
| 18 #include "chrome/personalization/personalization.h" | 18 #include "chrome/personalization/personalization.h" |
| 19 #endif | 19 #endif |
| 20 #include "webkit/glue/autofill_form.h" | 20 #include "webkit/glue/autofill_form.h" |
| 21 #include "webkit/glue/console_message_level.h" | 21 #include "webkit/glue/console_message_level.h" |
| 22 #include "webkit/glue/password_form_dom_manager.h" | 22 #include "webkit/glue/password_form_dom_manager.h" |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 // If we were asked to RunModal, then this will hold the reply_msg that we | 634 // If we were asked to RunModal, then this will hold the reply_msg that we |
| 635 // must return to the renderer to unblock it. | 635 // must return to the renderer to unblock it. |
| 636 IPC::Message* run_modal_reply_msg_; | 636 IPC::Message* run_modal_reply_msg_; |
| 637 | 637 |
| 638 bool has_unload_listener_; | 638 bool has_unload_listener_; |
| 639 | 639 |
| 640 bool is_waiting_for_unload_ack_; | 640 bool is_waiting_for_unload_ack_; |
| 641 | 641 |
| 642 bool are_javascript_messages_suppressed_; | 642 bool are_javascript_messages_suppressed_; |
| 643 | 643 |
| 644 // Handler for extension API requests. | 644 // Handles processing IPC messages request extension functions be executed. |
| 645 // Handles processing IPC messages related to the extension system. | 645 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 646 ExtensionAPIHandler extension_api_handler_; | |
| 647 | 646 |
| 648 DISALLOW_EVIL_CONSTRUCTORS(RenderViewHost); | 647 DISALLOW_EVIL_CONSTRUCTORS(RenderViewHost); |
| 649 }; | 648 }; |
| 650 | 649 |
| 651 // Factory for creating RenderViewHosts. Useful for unit tests. | 650 // Factory for creating RenderViewHosts. Useful for unit tests. |
| 652 class RenderViewHostFactory { | 651 class RenderViewHostFactory { |
| 653 public: | 652 public: |
| 654 virtual ~RenderViewHostFactory() {} | 653 virtual ~RenderViewHostFactory() {} |
| 655 | 654 |
| 656 virtual RenderViewHost* CreateRenderViewHost( | 655 virtual RenderViewHost* CreateRenderViewHost( |
| 657 SiteInstance* instance, | 656 SiteInstance* instance, |
| 658 RenderViewHostDelegate* delegate, | 657 RenderViewHostDelegate* delegate, |
| 659 int routing_id, | 658 int routing_id, |
| 660 base::WaitableEvent* modal_dialog_event) = 0; | 659 base::WaitableEvent* modal_dialog_event) = 0; |
| 661 }; | 660 }; |
| 662 | 661 |
| 663 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 662 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |