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

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

Issue 12780024: Split FaviconHelper in two: ImageLoadingHelper and FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 7 years, 9 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 | Annotate | Revision Log
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 virtual int GetMaximumZoomPercent() const OVERRIDE; 266 virtual int GetMaximumZoomPercent() const OVERRIDE;
267 virtual gfx::Size GetPreferredSize() const OVERRIDE; 267 virtual gfx::Size GetPreferredSize() const OVERRIDE;
268 virtual int GetContentRestrictions() const OVERRIDE; 268 virtual int GetContentRestrictions() const OVERRIDE;
269 virtual WebUI::TypeID GetWebUITypeForCurrentState() OVERRIDE; 269 virtual WebUI::TypeID GetWebUITypeForCurrentState() OVERRIDE;
270 virtual WebUI* GetWebUIForCurrentState() OVERRIDE; 270 virtual WebUI* GetWebUIForCurrentState() OVERRIDE;
271 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; 271 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
272 virtual bool HasOpener() const OVERRIDE; 272 virtual bool HasOpener() const OVERRIDE;
273 virtual void DidChooseColorInColorChooser(int color_chooser_id, 273 virtual void DidChooseColorInColorChooser(int color_chooser_id,
274 SkColor color) OVERRIDE; 274 SkColor color) OVERRIDE;
275 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE; 275 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE;
276 virtual int DownloadFavicon(const GURL& url, int image_size, 276 virtual int DownloadImage(const GURL& url, int image_size,
277 const FaviconDownloadCallback& callback) OVERRIDE; 277 const ImageDownloadCallback& callback) OVERRIDE;
278 278
279 // Implementation of PageNavigator. 279 // Implementation of PageNavigator.
280 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 280 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
281 281
282 // Implementation of IPC::Sender. 282 // Implementation of IPC::Sender.
283 virtual bool Send(IPC::Message* message) OVERRIDE; 283 virtual bool Send(IPC::Message* message) OVERRIDE;
284 284
285 // RenderViewHostDelegate ---------------------------------------------------- 285 // RenderViewHostDelegate ----------------------------------------------------
286 286
287 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 287 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 void OnPepperPluginHung(int plugin_child_id, 564 void OnPepperPluginHung(int plugin_child_id,
565 const base::FilePath& path, 565 const base::FilePath& path,
566 bool is_hung); 566 bool is_hung);
567 void OnWebUISend(const GURL& source_url, 567 void OnWebUISend(const GURL& source_url,
568 const std::string& name, 568 const std::string& name,
569 const base::ListValue& args); 569 const base::ListValue& args);
570 void OnRequestPpapiBrokerPermission(int request_id, 570 void OnRequestPpapiBrokerPermission(int request_id,
571 const GURL& url, 571 const GURL& url,
572 const base::FilePath& plugin_path); 572 const base::FilePath& plugin_path);
573 void OnBrowserPluginMessage(const IPC::Message& message); 573 void OnBrowserPluginMessage(const IPC::Message& message);
574 void OnDidDownloadFavicon(int id, 574 void OnDidDownloadImage(int id,
575 const GURL& image_url, 575 const GURL& image_url,
576 int requested_size, 576 int requested_size,
577 const std::vector<SkBitmap>& bitmaps); 577 const std::vector<SkBitmap>& bitmaps);
578 void OnUpdateFaviconURL(int32 page_id, 578 void OnUpdateFaviconURL(int32 page_id,
579 const std::vector<FaviconURL>& candidates); 579 const std::vector<FaviconURL>& candidates);
580 void OnFrameDetached(int64 frame_id); 580 void OnFrameDetached(int64 frame_id);
581 581
582 // Changes the IsLoading state and notifies delegate as needed 582 // Changes the IsLoading state and notifies delegate as needed
583 // |details| is used to provide details on the load that just finished 583 // |details| is used to provide details on the load that just finished
584 // (but can be null if not applicable). Can be overridden. 584 // (but can be null if not applicable). Can be overridden.
585 void SetIsLoading(bool is_loading, 585 void SetIsLoading(bool is_loading,
586 LoadNotificationDetails* details); 586 LoadNotificationDetails* details);
587 587
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 // to the RVH through which the message was received. 874 // to the RVH through which the message was received.
875 RenderViewHost* message_source_; 875 RenderViewHost* message_source_;
876 876
877 // All live RenderWidgetHostImpls that are created by this object and may 877 // All live RenderWidgetHostImpls that are created by this object and may
878 // outlive it. 878 // outlive it.
879 std::set<RenderWidgetHostImpl*> created_widgets_; 879 std::set<RenderWidgetHostImpl*> created_widgets_;
880 880
881 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise. 881 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise.
882 int fullscreen_widget_routing_id_; 882 int fullscreen_widget_routing_id_;
883 883
884 // Maps the ids of pending favicon downloads to their callbacks 884 // Maps the ids of pending image downloads to their callbacks
885 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; 885 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
886 FaviconDownloadMap favicon_download_map_; 886 ImageDownloadMap image_download_map_;
887 887
888 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 888 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
889 }; 889 };
890 890
891 } // namespace content 891 } // namespace content
892 892
893 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 893 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698