| 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 |
| 770 #if defined(ENABLE_PLUGINS) |
| 774 void OnPepperPluginHung(int plugin_child_id, | 771 void OnPepperPluginHung(int plugin_child_id, |
| 775 const base::FilePath& path, | 772 const base::FilePath& path, |
| 776 bool is_hung); | 773 bool is_hung); |
| 777 void OnPluginCrashed(const base::FilePath& plugin_path, | 774 void OnPluginCrashed(const base::FilePath& plugin_path, |
| 778 base::ProcessId plugin_pid); | 775 base::ProcessId plugin_pid); |
| 776 #endif |
| 779 void OnDomOperationResponse(const std::string& json_string, | 777 void OnDomOperationResponse(const std::string& json_string, |
| 780 int automation_id); | 778 int automation_id); |
| 781 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 779 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 782 void OnOpenColorChooser(int color_chooser_id, | 780 void OnOpenColorChooser(int color_chooser_id, |
| 783 SkColor color, | 781 SkColor color, |
| 784 const std::vector<ColorSuggestion>& suggestions); | 782 const std::vector<ColorSuggestion>& suggestions); |
| 785 void OnEndColorChooser(int color_chooser_id); | 783 void OnEndColorChooser(int color_chooser_id); |
| 786 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 784 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 787 void OnWebUISend(const GURL& source_url, | 785 void OnWebUISend(const GURL& source_url, |
| 788 const std::string& name, | 786 const std::string& name, |
| 789 const base::ListValue& args); | 787 const base::ListValue& args); |
| 788 #if defined(ENABLE_PLUGINS) |
| 790 void OnRequestPpapiBrokerPermission(int routing_id, | 789 void OnRequestPpapiBrokerPermission(int routing_id, |
| 791 const GURL& url, | 790 const GURL& url, |
| 792 const base::FilePath& plugin_path); | 791 const base::FilePath& plugin_path); |
| 792 |
| 793 // Callback function when requesting permission to access the PPAPI broker. |
| 794 // |result| is true if permission was granted. |
| 795 void OnPpapiBrokerPermissionResult(int routing_id, bool result); |
| 796 |
| 793 void OnBrowserPluginMessage(const IPC::Message& message); | 797 void OnBrowserPluginMessage(const IPC::Message& message); |
| 798 #endif // defined(ENABLE_PLUGINS) |
| 794 void OnDidDownloadImage(int id, | 799 void OnDidDownloadImage(int id, |
| 795 int http_status_code, | 800 int http_status_code, |
| 796 const GURL& image_url, | 801 const GURL& image_url, |
| 797 const std::vector<SkBitmap>& bitmaps, | 802 const std::vector<SkBitmap>& bitmaps, |
| 798 const std::vector<gfx::Size>& original_bitmap_sizes); | 803 const std::vector<gfx::Size>& original_bitmap_sizes); |
| 799 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); | 804 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); |
| 800 void OnFirstVisuallyNonEmptyPaint(); | 805 void OnFirstVisuallyNonEmptyPaint(); |
| 801 void OnMediaPlayingNotification(int64 player_cookie, | 806 void OnMediaPlayingNotification(int64 player_cookie, |
| 802 bool has_video, | 807 bool has_video, |
| 803 bool has_audio, | 808 bool has_audio, |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1223 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
| 1219 | 1224 |
| 1220 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1225 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| 1221 | 1226 |
| 1222 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1227 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1223 }; | 1228 }; |
| 1224 | 1229 |
| 1225 } // namespace content | 1230 } // namespace content |
| 1226 | 1231 |
| 1227 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1232 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |