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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 const GURL& url, | 827 const GURL& url, |
828 const base::FilePath& plugin_path); | 828 const base::FilePath& plugin_path); |
829 | 829 |
830 // Callback function when requesting permission to access the PPAPI broker. | 830 // Callback function when requesting permission to access the PPAPI broker. |
831 // |result| is true if permission was granted. | 831 // |result| is true if permission was granted. |
832 void OnPpapiBrokerPermissionResult(int routing_id, bool result); | 832 void OnPpapiBrokerPermissionResult(int routing_id, bool result); |
833 | 833 |
834 void OnBrowserPluginMessage(RenderFrameHost* render_frame_host, | 834 void OnBrowserPluginMessage(RenderFrameHost* render_frame_host, |
835 const IPC::Message& message); | 835 const IPC::Message& message); |
836 #endif // defined(ENABLE_PLUGINS) | 836 #endif // defined(ENABLE_PLUGINS) |
837 void OnDidDownloadImage(int id, | |
838 int http_status_code, | |
839 const GURL& image_url, | |
840 const std::vector<SkBitmap>& bitmaps, | |
841 const std::vector<gfx::Size>& original_bitmap_sizes); | |
842 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); | 837 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); |
843 void OnFirstVisuallyNonEmptyPaint(); | 838 void OnFirstVisuallyNonEmptyPaint(); |
844 void OnMediaPlayingNotification(int64 player_cookie, | 839 void OnMediaPlayingNotification(int64 player_cookie, |
845 bool has_video, | 840 bool has_video, |
846 bool has_audio, | 841 bool has_audio, |
847 bool is_remote); | 842 bool is_remote); |
848 void OnMediaPausedNotification(int64 player_cookie); | 843 void OnMediaPausedNotification(int64 player_cookie); |
849 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view, | 844 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view, |
850 const base::string16& main_text, | 845 const base::string16& main_text, |
851 const base::string16& sub_text); | 846 const base::string16& sub_text); |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 | 1210 |
1216 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise. | 1211 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise. |
1217 int fullscreen_widget_routing_id_; | 1212 int fullscreen_widget_routing_id_; |
1218 | 1213 |
1219 // At the time the fullscreen widget was being shut down, did it have focus? | 1214 // At the time the fullscreen widget was being shut down, did it have focus? |
1220 // This is used to restore focus to the WebContentsView after both: 1) the | 1215 // This is used to restore focus to the WebContentsView after both: 1) the |
1221 // fullscreen widget is destroyed, and 2) the WebContentsDelegate has | 1216 // fullscreen widget is destroyed, and 2) the WebContentsDelegate has |
1222 // completed making layout changes to effect an exit from fullscreen mode. | 1217 // completed making layout changes to effect an exit from fullscreen mode. |
1223 bool fullscreen_widget_had_focus_at_shutdown_; | 1218 bool fullscreen_widget_had_focus_at_shutdown_; |
1224 | 1219 |
1225 // Maps the ids of pending image downloads to their callbacks | |
1226 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | |
1227 ImageDownloadMap image_download_map_; | |
1228 | |
1229 // Whether this WebContents is responsible for displaying a subframe in a | 1220 // Whether this WebContents is responsible for displaying a subframe in a |
1230 // different process from its parent page. | 1221 // different process from its parent page. |
1231 bool is_subframe_; | 1222 bool is_subframe_; |
1232 | 1223 |
1233 // Whether overscroll should be unconditionally disabled. | 1224 // Whether overscroll should be unconditionally disabled. |
1234 bool force_disable_overscroll_content_; | 1225 bool force_disable_overscroll_content_; |
1235 | 1226 |
1236 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1227 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1237 bool last_dialog_suppressed_; | 1228 bool last_dialog_suppressed_; |
1238 | 1229 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 // Adds/removes a callback called on creation of each new WebContents. | 1266 // Adds/removes a callback called on creation of each new WebContents. |
1276 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1267 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1277 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1268 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1278 | 1269 |
1279 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1270 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1280 }; | 1271 }; |
1281 | 1272 |
1282 } // namespace content | 1273 } // namespace content |
1283 | 1274 |
1284 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1275 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |