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

Side by Side Diff: chrome/browser/dom_ui/downloads_ui.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_DOM_UI_DOWNLOADS_UI_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_DOWNLOADS_UI_H_
6 #define CHROME_BROWSER_DOM_UI_DOWNLOADS_UI_H_ 6 #define CHROME_BROWSER_DOM_UI_DOWNLOADS_UI_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/dom_ui/dom_ui.h" 10 #include "chrome/browser/dom_ui/dom_ui.h"
11 11
12 class RefCountedMemory;
13
12 class DownloadsUI : public DOMUI { 14 class DownloadsUI : public DOMUI {
13 public: 15 public:
14 explicit DownloadsUI(TabContents* contents); 16 explicit DownloadsUI(TabContents* contents);
15 17
16 static bool GetFaviconResourceBytes(std::vector<unsigned char>* bytes); 18 static RefCountedMemory* GetFaviconResourceBytes();
17 19
18 private: 20 private:
19 DISALLOW_COPY_AND_ASSIGN(DownloadsUI); 21 DISALLOW_COPY_AND_ASSIGN(DownloadsUI);
20 }; 22 };
21 23
22 #endif // CHROME_BROWSER_DOM_UI_DOWNLOADS_UI_H_ 24 #endif // CHROME_BROWSER_DOM_UI_DOWNLOADS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698