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

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

Issue 2537063002: Split Resource::Status into a separate file (Closed)
Patch Set: Rebase Created 4 years 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 8968aeca01cac2fd5c0e9d819f85d23ddcf7da6d..d9e1845657d13137de9e8239697eb44f60f7d8ad 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -301,6 +301,12 @@ void Resource::ResourceCallback::runTask() {
resource->finishPendingClients();
}
+constexpr Resource::Status Resource::NotStarted;
yhirano 2016/12/08 04:45:26 I don't understand why these are needed. A static
hiroshige 2016/12/08 10:07:39 I also thought so but the compile failed on Linux
yhirano 2016/12/09 08:40:05 yutak@ told me that an "odr-used" variable should
+constexpr Resource::Status Resource::Pending;
+constexpr Resource::Status Resource::Cached;
+constexpr Resource::Status Resource::LoadError;
+constexpr Resource::Status Resource::DecodeError;
+
Resource::Resource(const ResourceRequest& request,
Type type,
const ResourceLoaderOptions& options)

Powered by Google App Engine
This is Rietveld 408576698