OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_function_dispatcher.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/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
| 17 #include "chrome/common/notification_type.h" |
17 #include "chrome/common/page_zoom.h" | 18 #include "chrome/common/page_zoom.h" |
18 #include "webkit/api/public/WebConsoleMessage.h" | 19 #include "webkit/api/public/WebConsoleMessage.h" |
19 #include "webkit/api/public/WebDragOperation.h" | 20 #include "webkit/api/public/WebDragOperation.h" |
20 #include "webkit/api/public/WebTextDirection.h" | 21 #include "webkit/api/public/WebTextDirection.h" |
21 #include "webkit/glue/autofill_form.h" | 22 #include "webkit/glue/autofill_form.h" |
22 #include "webkit/glue/password_form_dom_manager.h" | 23 #include "webkit/glue/password_form_dom_manager.h" |
23 #include "webkit/glue/window_open_disposition.h" | 24 #include "webkit/glue/window_open_disposition.h" |
24 | 25 |
25 class RenderViewHostDelegate; | 26 class RenderViewHostDelegate; |
26 class SiteInstance; | 27 class SiteInstance; |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 void OnMsgDidFailProvisionalLoadWithError(bool main_frame, | 489 void OnMsgDidFailProvisionalLoadWithError(bool main_frame, |
489 int error_code, | 490 int error_code, |
490 const GURL& url, | 491 const GURL& url, |
491 bool showing_repost_interstitial); | 492 bool showing_repost_interstitial); |
492 void OnMsgFindReply(int request_id, | 493 void OnMsgFindReply(int request_id, |
493 int number_of_matches, | 494 int number_of_matches, |
494 const gfx::Rect& selection_rect, | 495 const gfx::Rect& selection_rect, |
495 int active_match_ordinal, | 496 int active_match_ordinal, |
496 bool final_update); | 497 bool final_update); |
497 void OnDeterminePageTextReply(const std::wstring& tab_text); | 498 void OnDeterminePageTextReply(const std::wstring& tab_text); |
| 499 void OnExecuteCodeFinished(int request_id, bool success); |
498 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url); | 500 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url); |
499 void OnMsgDidDownloadFavIcon(int id, | 501 void OnMsgDidDownloadFavIcon(int id, |
500 const GURL& image_url, | 502 const GURL& image_url, |
501 bool errored, | 503 bool errored, |
502 const SkBitmap& image_data); | 504 const SkBitmap& image_data); |
503 void OnMsgContextMenu(const ContextMenuParams& params); | 505 void OnMsgContextMenu(const ContextMenuParams& params); |
504 void OnMsgOpenURL(const GURL& url, const GURL& referrer, | 506 void OnMsgOpenURL(const GURL& url, const GURL& referrer, |
505 WindowOpenDisposition disposition); | 507 WindowOpenDisposition disposition); |
506 void OnMsgDidContentsPreferredWidthChange(int pref_width); | 508 void OnMsgDidContentsPreferredWidthChange(int pref_width); |
507 void OnMsgDomOperationResponse(const std::string& json_string, | 509 void OnMsgDomOperationResponse(const std::string& json_string, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 // While in this mode, mouse click is converted into InspectElement | 663 // While in this mode, mouse click is converted into InspectElement |
662 // command. | 664 // command. |
663 bool in_inspect_element_mode_; | 665 bool in_inspect_element_mode_; |
664 | 666 |
665 NotificationRegistrar registrar_; | 667 NotificationRegistrar registrar_; |
666 | 668 |
667 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 669 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
668 }; | 670 }; |
669 | 671 |
670 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 672 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |