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/renderer_host/render_view_host_delegate.h" | 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
13 #include "chrome/browser/renderer_host/render_widget_host.h" | 13 #include "chrome/browser/renderer_host/render_widget_host.h" |
14 #include "chrome/common/modal_dialog_event.h" | 14 #include "chrome/common/modal_dialog_event.h" |
15 #include "chrome/common/page_zoom.h" | 15 #include "chrome/common/page_zoom.h" |
16 #ifdef CHROME_PERSONALIZATION | 16 #ifdef CHROME_PERSONALIZATION |
17 #include "chrome/personalization/personalization.h" | 17 #include "chrome/personalization/personalization.h" |
18 #endif | 18 #endif |
19 #include "webkit/glue/autofill_form.h" | 19 #include "webkit/glue/autofill_form.h" |
20 #include "webkit/glue/console_message_level.h" | 20 #include "webkit/glue/console_message_level.h" |
21 #include "webkit/glue/password_form_dom_manager.h" | 21 #include "webkit/glue/password_form_dom_manager.h" |
22 #include "webkit/glue/window_open_disposition.h" | 22 #include "webkit/glue/window_open_disposition.h" |
23 | 23 |
24 class AutofillForm; | 24 class AutofillForm; |
25 class NavigationEntry; | 25 class NavigationEntry; |
26 class RenderViewHostDelegate; | 26 class RenderViewHostDelegate; |
27 class SiteInstance; | 27 class SiteInstance; |
28 class SkBitmap; | 28 class SkBitmap; |
29 struct ViewHostMsg_ContextMenu_Params; | 29 class ViewMsg_Navigate; |
| 30 struct ContextMenuParams; |
30 struct ViewHostMsg_DidPrintPage_Params; | 31 struct ViewHostMsg_DidPrintPage_Params; |
31 class ViewMsg_Navigate; | |
32 struct ViewMsg_Navigate_Params; | 32 struct ViewMsg_Navigate_Params; |
33 struct ViewMsg_Print_Params; | 33 struct ViewMsg_Print_Params; |
34 struct ViewMsg_PrintPages_Params; | 34 struct ViewMsg_PrintPages_Params; |
35 struct WebDropData; | 35 struct WebDropData; |
36 struct WebPreferences; | 36 struct WebPreferences; |
37 | 37 |
38 namespace base { | 38 namespace base { |
39 class WaitableEvent; | 39 class WaitableEvent; |
40 } | 40 } |
41 | 41 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 void OnMsgFindReply(int request_id, | 458 void OnMsgFindReply(int request_id, |
459 int number_of_matches, | 459 int number_of_matches, |
460 const gfx::Rect& selection_rect, | 460 const gfx::Rect& selection_rect, |
461 int active_match_ordinal, | 461 int active_match_ordinal, |
462 bool final_update); | 462 bool final_update); |
463 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url); | 463 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url); |
464 void OnMsgDidDownloadImage(int id, | 464 void OnMsgDidDownloadImage(int id, |
465 const GURL& image_url, | 465 const GURL& image_url, |
466 bool errored, | 466 bool errored, |
467 const SkBitmap& image_data); | 467 const SkBitmap& image_data); |
468 void OnMsgContextMenu(const ViewHostMsg_ContextMenu_Params& params); | 468 void OnMsgContextMenu(const ContextMenuParams& params); |
469 void OnMsgOpenURL(const GURL& url, const GURL& referrer, | 469 void OnMsgOpenURL(const GURL& url, const GURL& referrer, |
470 WindowOpenDisposition disposition); | 470 WindowOpenDisposition disposition); |
471 void OnMsgDomOperationResponse(const std::string& json_string, | 471 void OnMsgDomOperationResponse(const std::string& json_string, |
472 int automation_id); | 472 int automation_id); |
473 void OnMsgDOMUISend(const std::string& message, | 473 void OnMsgDOMUISend(const std::string& message, |
474 const std::string& content); | 474 const std::string& content); |
475 void OnMsgForwardMessageToExternalHost(const std::string& receiver, | 475 void OnMsgForwardMessageToExternalHost(const std::string& receiver, |
476 const std::string& message); | 476 const std::string& message); |
477 #ifdef CHROME_PERSONALIZATION | 477 #ifdef CHROME_PERSONALIZATION |
478 void OnPersonalizationEvent(const std::string& message, | 478 void OnPersonalizationEvent(const std::string& message, |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 virtual ~RenderViewHostFactory() {} | 620 virtual ~RenderViewHostFactory() {} |
621 | 621 |
622 virtual RenderViewHost* CreateRenderViewHost( | 622 virtual RenderViewHost* CreateRenderViewHost( |
623 SiteInstance* instance, | 623 SiteInstance* instance, |
624 RenderViewHostDelegate* delegate, | 624 RenderViewHostDelegate* delegate, |
625 int routing_id, | 625 int routing_id, |
626 base::WaitableEvent* modal_dialog_event) = 0; | 626 base::WaitableEvent* modal_dialog_event) = 0; |
627 }; | 627 }; |
628 | 628 |
629 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ | 629 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ |
OLD | NEW |