Index: content/common/resource_messages.cc |
diff --git a/content/common/resource_messages.cc b/content/common/resource_messages.cc |
index 2f86ae2ecd750dd7e144a5a9ebd8ed55e986c748..9cadbfffd7f2cec29e134f80a85c27d49d851b96 100644 |
--- a/content/common/resource_messages.cc |
+++ b/content/common/resource_messages.cc |
@@ -56,13 +56,20 @@ void ParamTraits<storage::DataElement>::Write(Message* m, const param_type& p) { |
WriteParam(m, p.expected_modification_time()); |
break; |
} |
- default: { |
- DCHECK(p.type() == storage::DataElement::TYPE_BLOB); |
+ case storage::DataElement::TYPE_BLOB: { |
WriteParam(m, p.blob_uuid()); |
WriteParam(m, p.offset()); |
WriteParam(m, p.length()); |
break; |
} |
+ case storage::DataElement::TYPE_DISK_CACHE_ENTRY: { |
+ NOTREACHED() << "Can't be sent by IPC."; |
+ break; |
+ } |
+ case storage::DataElement::TYPE_UNKNOWN: { |
+ NOTREACHED(); |
+ break; |
+ } |
} |
} |
@@ -113,8 +120,7 @@ bool ParamTraits<storage::DataElement>::Read(const Message* m, |
expected_modification_time); |
break; |
} |
- default: { |
- DCHECK(type == storage::DataElement::TYPE_BLOB); |
+ case storage::DataElement::TYPE_BLOB: { |
std::string blob_uuid; |
uint64 offset, length; |
if (!ReadParam(m, iter, &blob_uuid)) |
@@ -126,6 +132,14 @@ bool ParamTraits<storage::DataElement>::Read(const Message* m, |
r->SetToBlobRange(blob_uuid, offset, length); |
break; |
} |
+ case storage::DataElement::TYPE_DISK_CACHE_ENTRY: { |
+ NOTREACHED() << "Can't be sent by IPC."; |
+ break; |
+ } |
+ case storage::DataElement::TYPE_UNKNOWN: { |
+ NOTREACHED(); |
+ break; |
+ } |
} |
return true; |
} |