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

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: caitp feedback Created 7 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 | 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 virtual int GetMinimumZoomPercent() const OVERRIDE; 258 virtual int GetMinimumZoomPercent() const OVERRIDE;
259 virtual int GetMaximumZoomPercent() const OVERRIDE; 259 virtual int GetMaximumZoomPercent() const OVERRIDE;
260 virtual gfx::Size GetPreferredSize() const OVERRIDE; 260 virtual gfx::Size GetPreferredSize() const OVERRIDE;
261 virtual int GetContentRestrictions() const OVERRIDE; 261 virtual int GetContentRestrictions() const OVERRIDE;
262 virtual WebUI* GetWebUIForCurrentState() OVERRIDE; 262 virtual WebUI* GetWebUIForCurrentState() OVERRIDE;
263 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; 263 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
264 virtual bool HasOpener() const OVERRIDE; 264 virtual bool HasOpener() const OVERRIDE;
265 virtual void DidChooseColorInColorChooser(int color_chooser_id, 265 virtual void DidChooseColorInColorChooser(int color_chooser_id,
266 SkColor color) OVERRIDE; 266 SkColor color) OVERRIDE;
267 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE; 267 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE;
268 virtual int DownloadFavicon(const GURL& url, 268 virtual int DownloadImage(const GURL& url,
269 bool is_favicon, 269 bool is_favicon,
270 int image_size, 270 int image_size,
271 const FaviconDownloadCallback& callback) OVERRIDE; 271 const ImageDownloadCallback& callback) OVERRIDE;
272 272
273 // Implementation of PageNavigator. 273 // Implementation of PageNavigator.
274 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 274 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
275 275
276 // Implementation of IPC::Sender. 276 // Implementation of IPC::Sender.
277 virtual bool Send(IPC::Message* message) OVERRIDE; 277 virtual bool Send(IPC::Message* message) OVERRIDE;
278 278
279 // RenderViewHostDelegate ---------------------------------------------------- 279 // RenderViewHostDelegate ----------------------------------------------------
280 280
281 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 281 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 void OnPepperPluginHung(int plugin_child_id, 558 void OnPepperPluginHung(int plugin_child_id,
559 const base::FilePath& path, 559 const base::FilePath& path,
560 bool is_hung); 560 bool is_hung);
561 void OnWebUISend(const GURL& source_url, 561 void OnWebUISend(const GURL& source_url,
562 const std::string& name, 562 const std::string& name,
563 const base::ListValue& args); 563 const base::ListValue& args);
564 void OnRequestPpapiBrokerPermission(int request_id, 564 void OnRequestPpapiBrokerPermission(int request_id,
565 const GURL& url, 565 const GURL& url,
566 const base::FilePath& plugin_path); 566 const base::FilePath& plugin_path);
567 void OnBrowserPluginMessage(const IPC::Message& message); 567 void OnBrowserPluginMessage(const IPC::Message& message);
568 void OnDidDownloadFavicon(int id, 568 void OnDidDownloadImage(int id,
569 const GURL& image_url, 569 const GURL& image_url,
570 int requested_size, 570 int requested_size,
571 const std::vector<SkBitmap>& bitmaps); 571 const std::vector<SkBitmap>& bitmaps);
572 void OnUpdateFaviconURL(int32 page_id, 572 void OnUpdateFaviconURL(int32 page_id,
573 const std::vector<FaviconURL>& candidates); 573 const std::vector<FaviconURL>& candidates);
574 void OnFrameDetached(int64 frame_id); 574 void OnFrameDetached(int64 frame_id);
575 575
576 // Changes the IsLoading state and notifies delegate as needed 576 // Changes the IsLoading state and notifies delegate as needed
577 // |details| is used to provide details on the load that just finished 577 // |details| is used to provide details on the load that just finished
578 // (but can be null if not applicable). Can be overridden. 578 // (but can be null if not applicable). Can be overridden.
579 void SetIsLoading(bool is_loading, 579 void SetIsLoading(bool is_loading,
580 LoadNotificationDetails* details); 580 LoadNotificationDetails* details);
581 581
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 // to the RVH through which the message was received. 864 // to the RVH through which the message was received.
865 RenderViewHost* message_source_; 865 RenderViewHost* message_source_;
866 866
867 // All live RenderWidgetHostImpls that are created by this object and may 867 // All live RenderWidgetHostImpls that are created by this object and may
868 // outlive it. 868 // outlive it.
869 std::set<RenderWidgetHostImpl*> created_widgets_; 869 std::set<RenderWidgetHostImpl*> created_widgets_;
870 870
871 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise. 871 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise.
872 int fullscreen_widget_routing_id_; 872 int fullscreen_widget_routing_id_;
873 873
874 // Maps the ids of pending favicon downloads to their callbacks 874 // Maps the ids of pending image downloads to their callbacks
875 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; 875 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
876 FaviconDownloadMap favicon_download_map_; 876 ImageDownloadMap image_download_map_;
877 877
878 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 878 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
879 }; 879 };
880 880
881 } // namespace content 881 } // namespace content
882 882
883 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 883 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/web_applications/web_app_ui.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698