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

Unified Diff: chrome/browser/dom_ui/dom_ui_factory.h

Issue 288005: First fix to minimize copying of image data. (Closed)
Patch Set: Modify gyp Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/dom_ui/dom_ui_factory.h
diff --git a/chrome/browser/dom_ui/dom_ui_factory.h b/chrome/browser/dom_ui/dom_ui_factory.h
index 705708ac057d3c76e115f2a5811f52ae1b7bf3cf..33c32cb088140e824413e4b8efd28fbe173dc028 100644
--- a/chrome/browser/dom_ui/dom_ui_factory.h
+++ b/chrome/browser/dom_ui/dom_ui_factory.h
@@ -9,6 +9,7 @@
class DOMUI;
class GURL;
+class RefCountedMemory;
class TabContents;
// An opaque identifier used to identify a DOMUI. This can only be compared to
@@ -42,8 +43,7 @@ class DOMUIFactory {
// Gets the data for the favicon for a DOMUI page. Returns false if the DOMUI
// does not have a favicon.
- static bool GetFaviconResourceBytes(const GURL& page_url,
- std::vector<unsigned char>* bytes);
+ static RefCountedMemory* GetFaviconResourceBytes(const GURL& page_url);
private:
// Class is for scoping only.

Powered by Google App Engine
This is Rietveld 408576698