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

Unified Diff: chrome/browser/dom_ui/chrome_url_data_manager.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/chrome_url_data_manager.h
diff --git a/chrome/browser/dom_ui/chrome_url_data_manager.h b/chrome/browser/dom_ui/chrome_url_data_manager.h
index 22b1ee4b968d2554a58ba78d18b951f3515a07e1..bb1a82c7664302c4691500ce13898c7809ca6f76 100644
--- a/chrome/browser/dom_ui/chrome_url_data_manager.h
+++ b/chrome/browser/dom_ui/chrome_url_data_manager.h
@@ -9,7 +9,7 @@
#include <string>
#include "base/task.h"
-#include "chrome/common/ref_counted_util.h"
+#include "base/ref_counted_memory.h"
class DictionaryValue;
class FilePath;
@@ -58,7 +58,7 @@ class ChromeURLDataManager {
// Report that a request has resulted in the data |bytes|.
// If the request can't be satisfied, pass NULL for |bytes| to indicate
// the request is over.
- void SendResponse(int request_id, RefCountedBytes* bytes);
+ void SendResponse(int request_id, RefCountedMemory* bytes);
// Returns the MessageLoop on which the DataSource wishes to have
// StartDataRequest called to handle the request for |path|. If the
@@ -131,7 +131,7 @@ class ChromeURLDataManager {
// Sent by Request::SendResponse.
void DataAvailable(RequestID request_id,
- scoped_refptr<RefCountedBytes> bytes);
+ scoped_refptr<RefCountedMemory> bytes);
// File sources of data, keyed by source name (e.g. "inspector").
typedef std::map<std::string, FilePath> FileSourceMap;

Powered by Google App Engine
This is Rietveld 408576698