OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 // Callback function when showing JavaScript dialogs. Takes in a routing ID | 716 // Callback function when showing JavaScript dialogs. Takes in a routing ID |
717 // pair to identify the RenderFrameHost that opened the dialog, because it's | 717 // pair to identify the RenderFrameHost that opened the dialog, because it's |
718 // possible for the RenderFrameHost to be deleted by the time this is called. | 718 // possible for the RenderFrameHost to be deleted by the time this is called. |
719 void OnDialogClosed(int render_process_id, | 719 void OnDialogClosed(int render_process_id, |
720 int render_frame_id, | 720 int render_frame_id, |
721 IPC::Message* reply_msg, | 721 IPC::Message* reply_msg, |
722 bool dialog_was_suppressed, | 722 bool dialog_was_suppressed, |
723 bool success, | 723 bool success, |
724 const base::string16& user_input); | 724 const base::string16& user_input); |
725 | 725 |
726 // Callback function when requesting permission to access the PPAPI broker. | |
727 // |result| is true if permission was granted. | |
728 void OnPpapiBrokerPermissionResult(int routing_id, bool result); | |
729 | |
730 bool OnMessageReceived(RenderViewHost* render_view_host, | 726 bool OnMessageReceived(RenderViewHost* render_view_host, |
731 RenderFrameHost* render_frame_host, | 727 RenderFrameHost* render_frame_host, |
732 const IPC::Message& message); | 728 const IPC::Message& message); |
733 | 729 |
734 // IPC message handlers. | 730 // IPC message handlers. |
735 void OnThemeColorChanged(SkColor theme_color); | 731 void OnThemeColorChanged(SkColor theme_color); |
736 void OnDidLoadResourceFromMemoryCache(const GURL& url, | 732 void OnDidLoadResourceFromMemoryCache(const GURL& url, |
737 const std::string& security_info, | 733 const std::string& security_info, |
738 const std::string& http_request, | 734 const std::string& http_request, |
739 const std::string& mime_type, | 735 const std::string& mime_type, |
(...skipping 24 matching lines...) Expand all Loading... |
764 int active_match_ordinal, | 760 int active_match_ordinal, |
765 bool final_update); | 761 bool final_update); |
766 #if defined(OS_ANDROID) | 762 #if defined(OS_ANDROID) |
767 void OnFindMatchRectsReply(int version, | 763 void OnFindMatchRectsReply(int version, |
768 const std::vector<gfx::RectF>& rects, | 764 const std::vector<gfx::RectF>& rects, |
769 const gfx::RectF& active_rect); | 765 const gfx::RectF& active_rect); |
770 | 766 |
771 void OnOpenDateTimeDialog( | 767 void OnOpenDateTimeDialog( |
772 const ViewHostMsg_DateTimeDialogValue_Params& value); | 768 const ViewHostMsg_DateTimeDialogValue_Params& value); |
773 #endif | 769 #endif |
774 void OnPepperPluginHung(int plugin_child_id, | |
775 const base::FilePath& path, | |
776 bool is_hung); | |
777 void OnPluginCrashed(const base::FilePath& plugin_path, | |
778 base::ProcessId plugin_pid); | |
779 void OnDomOperationResponse(const std::string& json_string, | 770 void OnDomOperationResponse(const std::string& json_string, |
780 int automation_id); | 771 int automation_id); |
781 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 772 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
782 void OnOpenColorChooser(int color_chooser_id, | 773 void OnOpenColorChooser(int color_chooser_id, |
783 SkColor color, | 774 SkColor color, |
784 const std::vector<ColorSuggestion>& suggestions); | 775 const std::vector<ColorSuggestion>& suggestions); |
785 void OnEndColorChooser(int color_chooser_id); | 776 void OnEndColorChooser(int color_chooser_id); |
786 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 777 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
787 void OnWebUISend(const GURL& source_url, | 778 void OnWebUISend(const GURL& source_url, |
788 const std::string& name, | 779 const std::string& name, |
789 const base::ListValue& args); | 780 const base::ListValue& args); |
| 781 #if defined(ENABLE_PLUGINS) |
| 782 void OnPepperPluginHung(int plugin_child_id, |
| 783 const base::FilePath& path, |
| 784 bool is_hung); |
| 785 void OnPluginCrashed(const base::FilePath& plugin_path, |
| 786 base::ProcessId plugin_pid); |
790 void OnRequestPpapiBrokerPermission(int routing_id, | 787 void OnRequestPpapiBrokerPermission(int routing_id, |
791 const GURL& url, | 788 const GURL& url, |
792 const base::FilePath& plugin_path); | 789 const base::FilePath& plugin_path); |
| 790 |
| 791 // Callback function when requesting permission to access the PPAPI broker. |
| 792 // |result| is true if permission was granted. |
| 793 void OnPpapiBrokerPermissionResult(int routing_id, bool result); |
| 794 |
793 void OnBrowserPluginMessage(const IPC::Message& message); | 795 void OnBrowserPluginMessage(const IPC::Message& message); |
| 796 #endif // defined(ENABLE_PLUGINS) |
794 void OnDidDownloadImage(int id, | 797 void OnDidDownloadImage(int id, |
795 int http_status_code, | 798 int http_status_code, |
796 const GURL& image_url, | 799 const GURL& image_url, |
797 const std::vector<SkBitmap>& bitmaps, | 800 const std::vector<SkBitmap>& bitmaps, |
798 const std::vector<gfx::Size>& original_bitmap_sizes); | 801 const std::vector<gfx::Size>& original_bitmap_sizes); |
799 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); | 802 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); |
800 void OnFirstVisuallyNonEmptyPaint(); | 803 void OnFirstVisuallyNonEmptyPaint(); |
801 void OnMediaPlayingNotification(int64 player_cookie, | 804 void OnMediaPlayingNotification(int64 player_cookie, |
802 bool has_video, | 805 bool has_video, |
803 bool has_audio, | 806 bool has_audio, |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1221 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1219 | 1222 |
1220 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1223 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1221 | 1224 |
1222 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1225 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1223 }; | 1226 }; |
1224 | 1227 |
1225 } // namespace content | 1228 } // namespace content |
1226 | 1229 |
1227 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1230 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |