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

Unified Diff: third_party/WebKit/Source/platform/SerializedResource.h

Issue 2220543002: Make Resource::resourceBuffer() to return PassRefPtr<const SharedBuffer> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WTF_UseIsConvertibleInEnsure
Patch Set: Rebase Created 4 years, 3 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: third_party/WebKit/Source/platform/SerializedResource.h
diff --git a/third_party/WebKit/Source/platform/SerializedResource.h b/third_party/WebKit/Source/platform/SerializedResource.h
index eb15f690b3f2f5dca4baea74972a106328314ddf..4e64591c830189e54f373c9457ff297e42086578 100644
--- a/third_party/WebKit/Source/platform/SerializedResource.h
+++ b/third_party/WebKit/Source/platform/SerializedResource.h
@@ -42,9 +42,9 @@ struct SerializedResource {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
KURL url;
String mimeType;
- RefPtr<SharedBuffer> data;
+ RefPtr<const SharedBuffer> data;
- SerializedResource(const KURL& url, const String& mimeType, PassRefPtr<SharedBuffer> data)
+ SerializedResource(const KURL& url, const String& mimeType, PassRefPtr<const SharedBuffer> data)
: url(url)
, mimeType(mimeType)
, data(data)

Powered by Google App Engine
This is Rietveld 408576698