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

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

Issue 2164553002: Refactoring: Hide or remove some methods of Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) 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.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index f1b0970d5115f539aa42524632989bd2986c83e7..f1f7b2e283f88d11abb866ed9c7169e9a8f89427 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -143,8 +143,6 @@ public:
};
PreloadResult getPreloadResult() const { return static_cast<PreloadResult>(m_preloadResult); }
- unsigned count() const { return m_clients.size(); }
-
Status getStatus() const { return static_cast<Status>(m_status); }
void setStatus(Status status) { m_status = status; }
@@ -197,8 +195,6 @@ public:
// This may return nullptr when the resource isn't cacheable.
CachedMetadataHandler* cacheHandler();
- String reasonNotDeletable() const;
-
AtomicString httpContentType() const;
bool wasCanceled() const { return m_error.isCancellation(); }
@@ -244,7 +240,6 @@ public:
virtual void onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) const;
static const char* resourceTypeToString(Type, const FetchInitiatorInfo&);
- static const char* resourceTypeName(Type);
protected:
Resource(const ResourceRequest&, Type, const ResourceLoaderOptions&);
@@ -314,6 +309,8 @@ private:
bool unlock();
+ String reasonNotDeletable() const;
+
Member<CachedMetadataHandlerImpl> m_cacheHandler;
RefPtr<SecurityOrigin> m_fetcherSecurityOrigin;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698