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

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

Issue 2148183002: Refactoring: Move some Resource members from protected to private (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 4a0065a8c10a6a6798675a5edd7befc9980a80ab..80db3954dc41028a2b38cbc7b9e64d8d821826b3 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -295,9 +295,6 @@ void Resource::ResourceCallback::runTask()
Resource::Resource(const ResourceRequest& request, Type type, const ResourceLoaderOptions& options)
: m_resourceRequest(request)
- , m_options(options)
- , m_responseTimestamp(currentTime())
- , m_cancelTimer(this, &Resource::cancelTimerFired)
, m_loadFinishTime(0)
, m_identifier(0)
, m_encodedSize(0)
@@ -312,6 +309,9 @@ Resource::Resource(const ResourceRequest& request, Type type, const ResourceLoad
, m_needsSynchronousCacheHit(false)
, m_linkPreload(false)
, m_isRevalidating(false)
+ , m_options(options)
+ , m_responseTimestamp(currentTime())
+ , m_cancelTimer(this, &Resource::cancelTimerFired)
{
ASSERT(m_type == unsigned(type)); // m_type is a bitfield, so this tests careless updates of the enum.
InstanceCounters::incrementCounter(InstanceCounters::ResourceCounter);
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698