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

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

Powered by Google App Engine
This is Rietveld 408576698