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

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: 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_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"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/navigation_controller.h" 14 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/browser/page_navigator.h" 15 #include "content/public/browser/page_navigator.h"
16 #include "content/public/browser/save_page_type.h" 16 #include "content/public/browser/save_page_type.h"
17 #include "content/public/browser/web_ui.h" 17 #include "content/public/browser/web_ui.h"
18 #include "content/public/common/content_constants.h"
18 #include "ipc/ipc_sender.h" 19 #include "ipc/ipc_sender.h"
19 #include "third_party/skia/include/core/SkColor.h" 20 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/base/window_open_disposition.h" 21 #include "ui/base/window_open_disposition.h"
21 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
22 #include "ui/gfx/size.h" 23 #include "ui/gfx/size.h"
23 24
24 namespace base { 25 namespace base {
25 class TimeTicks; 26 class TimeTicks;
26 } 27 }
27 28
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 417
417 typedef base::Callback<void(int, /* id */ 418 typedef base::Callback<void(int, /* id */
418 const GURL&, /* image_url */ 419 const GURL&, /* image_url */
419 int, /* requested_size */ 420 int, /* requested_size */
420 const std::vector<SkBitmap>& /* bitmaps*/)> 421 const std::vector<SkBitmap>& /* bitmaps*/)>
421 FaviconDownloadCallback; 422 FaviconDownloadCallback;
422 423
423 // Sends a request to download the given favicon |url| and returns the unique 424 // 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 425 // id of the download request. When the download is finished, |callback| will
425 // be called with the bitmaps received from the renderer. Note that 426 // be called with the bitmaps received from the renderer. 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
joth 2013/03/19 22:44:31 |image_type| ...
Dmitry Titov 2013/03/20 01:10:07 Done.
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.
Cait (Slow) 2013/03/20 00:04:56 please add a note explaining the purpose of the Do
Dmitry Titov 2013/03/20 01:10:07 Done.
429 virtual int DownloadFavicon(const GURL& url, int image_size, 430 virtual int DownloadFavicon(const GURL& url,
431 DownloadImageType image_type,
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

Powered by Google App Engine
This is Rietveld 408576698