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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2202173002: Refactoring: Make Resource::m_data private (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on hiroshige's review Created 4 years, 4 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/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index aa38dcd8db673802763783fb5706cc9a8d7ce5ff..471249d76b8b0c592d62abc1705f79024817585b 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -294,7 +294,8 @@ protected:
void setCachePolicyBypassingCache();
void setLoFiStateOff();
- RefPtr<SharedBuffer> m_data;
+ SharedBuffer* data() const { return m_data.get(); }
+ void clearData() { m_data.clear(); }
private:
class ResourceCallback;
@@ -360,6 +361,8 @@ private:
ResourceRequest m_resourceRequest;
Member<ResourceLoader> m_loader;
ResourceResponse m_response;
+
+ RefPtr<SharedBuffer> m_data;
};
class ResourceFactory {
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.cpp ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698