Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1085783002: Replace image_messages.h with Mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot unit_tests error Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 const GURL& url, 851 const GURL& url,
852 const base::FilePath& plugin_path); 852 const base::FilePath& plugin_path);
853 853
854 // Callback function when requesting permission to access the PPAPI broker. 854 // Callback function when requesting permission to access the PPAPI broker.
855 // |result| is true if permission was granted. 855 // |result| is true if permission was granted.
856 void OnPpapiBrokerPermissionResult(int routing_id, bool result); 856 void OnPpapiBrokerPermissionResult(int routing_id, bool result);
857 857
858 void OnBrowserPluginMessage(RenderFrameHost* render_frame_host, 858 void OnBrowserPluginMessage(RenderFrameHost* render_frame_host,
859 const IPC::Message& message); 859 const IPC::Message& message);
860 #endif // defined(ENABLE_PLUGINS) 860 #endif // defined(ENABLE_PLUGINS)
861 void OnDidDownloadImage(int id,
862 int http_status_code,
863 const GURL& image_url,
864 const std::vector<SkBitmap>& bitmaps,
865 const std::vector<gfx::Size>& original_bitmap_sizes);
866 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); 861 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates);
867 void OnFirstVisuallyNonEmptyPaint(); 862 void OnFirstVisuallyNonEmptyPaint();
868 void OnMediaPlayingNotification(int64 player_cookie, 863 void OnMediaPlayingNotification(int64 player_cookie,
869 bool has_video, 864 bool has_video,
870 bool has_audio, 865 bool has_audio,
871 bool is_remote); 866 bool is_remote);
872 void OnMediaPausedNotification(int64 player_cookie); 867 void OnMediaPausedNotification(int64 player_cookie);
873 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view, 868 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view,
874 const base::string16& main_text, 869 const base::string16& main_text,
875 const base::string16& sub_text); 870 const base::string16& sub_text);
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 1232
1238 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise. 1233 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise.
1239 int fullscreen_widget_routing_id_; 1234 int fullscreen_widget_routing_id_;
1240 1235
1241 // At the time the fullscreen widget was being shut down, did it have focus? 1236 // At the time the fullscreen widget was being shut down, did it have focus?
1242 // This is used to restore focus to the WebContentsView after both: 1) the 1237 // This is used to restore focus to the WebContentsView after both: 1) the
1243 // fullscreen widget is destroyed, and 2) the WebContentsDelegate has 1238 // fullscreen widget is destroyed, and 2) the WebContentsDelegate has
1244 // completed making layout changes to effect an exit from fullscreen mode. 1239 // completed making layout changes to effect an exit from fullscreen mode.
1245 bool fullscreen_widget_had_focus_at_shutdown_; 1240 bool fullscreen_widget_had_focus_at_shutdown_;
1246 1241
1247 // Maps the ids of pending image downloads to their callbacks
1248 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
1249 ImageDownloadMap image_download_map_;
1250
1251 // Whether this WebContents is responsible for displaying a subframe in a 1242 // Whether this WebContents is responsible for displaying a subframe in a
1252 // different process from its parent page. 1243 // different process from its parent page.
1253 bool is_subframe_; 1244 bool is_subframe_;
1254 1245
1255 // Whether overscroll should be unconditionally disabled. 1246 // Whether overscroll should be unconditionally disabled.
1256 bool force_disable_overscroll_content_; 1247 bool force_disable_overscroll_content_;
1257 1248
1258 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1249 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1259 bool last_dialog_suppressed_; 1250 bool last_dialog_suppressed_;
1260 1251
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 // Adds/removes a callback called on creation of each new WebContents. 1288 // Adds/removes a callback called on creation of each new WebContents.
1298 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1289 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1299 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1290 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1300 1291
1301 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1292 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1302 }; 1293 };
1303 1294
1304 } // namespace content 1295 } // namespace content
1305 1296
1306 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1297 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698