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

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

Issue 12945007: Fix Notifications Icon loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing 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
« no previous file with comments | « content/common/icon_messages.h ('k') | content/renderer/favicon_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 virtual bool HasOpener() const = 0; 415 virtual bool HasOpener() const = 0;
416 416
417 typedef base::Callback<void(int, /* id */ 417 typedef base::Callback<void(int, /* id */
418 const GURL&, /* image_url */ 418 const GURL&, /* image_url */
419 int, /* requested_size */ 419 int, /* requested_size */
420 const std::vector<SkBitmap>& /* bitmaps*/)> 420 const std::vector<SkBitmap>& /* bitmaps*/)>
421 FaviconDownloadCallback; 421 FaviconDownloadCallback;
422 422
423 // Sends a request to download the given favicon |url| and returns the unique 423 // Sends a request to download the given favicon |url| and returns the unique
424 // id of the download request. When the download is finished, |callback| will 424 // id of the download request. When the download is finished, |callback| will
425 // be called with the bitmaps received from the renderer. Note that 425 // be called with the bitmaps received from the renderer. If [is_favicon|,
426 // the cookeis are not sent and not accepted during download. Note that
426 // |image_size| is a hint for images with multiple sizes. The downloaded image 427 // |image_size| is a hint for images with multiple sizes. The downloaded image
427 // is not resized to the given image_size. If 0 is passed, the first frame of 428 // is not resized to the given image_size. If 0 is passed, the first frame of
428 // the image is returned. 429 // the image is returned.
429 virtual int DownloadFavicon(const GURL& url, int image_size, 430 virtual int DownloadFavicon(const GURL& url,
431 bool is_favicon,
432 int image_size,
430 const FaviconDownloadCallback& callback) = 0; 433 const FaviconDownloadCallback& callback) = 0;
431 434
432 private: 435 private:
433 // This interface should only be implemented inside content. 436 // This interface should only be implemented inside content.
434 friend class WebContentsImpl; 437 friend class WebContentsImpl;
435 WebContents() {} 438 WebContents() {}
436 }; 439 };
437 440
438 } // namespace content 441 } // namespace content
439 442
440 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/common/icon_messages.h ('k') | content/renderer/favicon_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698