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

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

Issue 11411180: move favicon download code from chrome/ into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 18 matching lines...) Expand all
29 class Size; 29 class Size;
30 } 30 }
31 31
32 namespace net { 32 namespace net {
33 struct LoadStateWithParam; 33 struct LoadStateWithParam;
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 37
38 class BrowserContext; 38 class BrowserContext;
39 class FaviconDownloadDelegate;
39 class InterstitialPage; 40 class InterstitialPage;
40 class RenderProcessHost; 41 class RenderProcessHost;
41 class RenderViewHost; 42 class RenderViewHost;
42 class RenderWidgetHostView; 43 class RenderWidgetHostView;
43 class SiteInstance; 44 class SiteInstance;
44 class WebContentsDelegate; 45 class WebContentsDelegate;
45 class WebContentsView; 46 class WebContentsView;
46 struct RendererPreferences; 47 struct RendererPreferences;
47 48
48 // Describes what goes in the main content area of a tab. 49 // Describes what goes in the main content area of a tab.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // Returns true if the location bar should be focused by default rather than 387 // Returns true if the location bar should be focused by default rather than
387 // the page contents. The view calls this function when the tab is focused 388 // the page contents. The view calls this function when the tab is focused
388 // to see what it should do. 389 // to see what it should do.
389 virtual bool FocusLocationBarByDefault() = 0; 390 virtual bool FocusLocationBarByDefault() = 0;
390 391
391 // Focuses the location bar. 392 // Focuses the location bar.
392 virtual void SetFocusToLocationBar(bool select_all) = 0; 393 virtual void SetFocusToLocationBar(bool select_all) = 0;
393 394
394 // Does this have an opener associated with it? 395 // Does this have an opener associated with it?
395 virtual bool HasOpener() const = 0; 396 virtual bool HasOpener() const = 0;
397
398 // Starts the download of the given favicon |url| and returns the unique id of
399 // the download request. When the download is finished, an
400 // IconHostMsg_DidDownloadFavicon IPC message will be sent and passed on to
401 // the delegate via FaviconDownloadDelegate::DidDownloadFavicon().
402 // Note that |image_size| is a hint for images with multiple sizes. The
403 // downloaded image is not resized to the given image_size. If 0 is passed,
404 // the first frame of the image is returned.
405 virtual int DownloadFavicon(const GURL& url, int image_size) = 0;
jam 2012/11/27 01:16:31 nit: comment is out of date (re IPC) seems that a
Cait (Slow) 2012/11/28 00:11:45 Fixed the comment. Unfortunately, the delegate has
jam 2012/11/28 04:08:16 can the updated url be saved in WebContents until
406
407 virtual void RegisterFaviconDelegate(FaviconDownloadDelegate* delegate) = 0;
408
396 }; 409 };
397 410
398 } // namespace content 411 } // namespace content
399 412
400 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 413 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698