| Index: content/common/indexed_db/indexed_db_param_traits.cc
|
| diff --git a/content/common/indexed_db/indexed_db_param_traits.cc b/content/common/indexed_db/indexed_db_param_traits.cc
|
| index 8593f752fedca025574b893ad40bb2dd782a3d8f..97d383c25be998ea61eb82e39b36226834d747e9 100644
|
| --- a/content/common/indexed_db/indexed_db_param_traits.cc
|
| +++ b/content/common/indexed_db/indexed_db_param_traits.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "content/common/indexed_db/indexed_db_param_traits.h"
|
|
|
| +#include <string>
|
| +#include <vector>
|
| #include "content/common/indexed_db/indexed_db_key.h"
|
| #include "content/common/indexed_db/indexed_db_key_path.h"
|
| #include "content/common/indexed_db/indexed_db_key_range.h"
|
| @@ -19,7 +21,7 @@ using WebKit::WebIDBKeyPath;
|
| namespace IPC {
|
|
|
| void ParamTraits<IndexedDBKey>::Write(Message* m, const param_type& p) {
|
| - WriteParam(m, int(p.type()));
|
| + WriteParam(m, static_cast<int>(p.type()));
|
| switch (p.type()) {
|
| case WebIDBKey::ArrayType:
|
| WriteParam(m, p.array());
|
| @@ -36,8 +38,7 @@ void ParamTraits<IndexedDBKey>::Write(Message* m, const param_type& p) {
|
| case WebIDBKey::InvalidType:
|
| case WebIDBKey::NullType:
|
| return;
|
| - default:
|
| - // This is a placeholder for WebKit::WebIDBKey::MinType
|
| + case WebIDBKey::MinType:
|
| NOTREACHED();
|
| return;
|
| }
|
| @@ -78,8 +79,7 @@ bool ParamTraits<IndexedDBKey>::Read(const Message* m,
|
| case WebIDBKey::NullType:
|
| *r = IndexedDBKey(web_type);
|
| return true;
|
| - default:
|
| - // This is a placeholder for WebKit::WebIDBKey::MinType
|
| + case WebIDBKey::MinType:
|
| NOTREACHED();
|
| return false;
|
| }
|
| @@ -87,7 +87,7 @@ bool ParamTraits<IndexedDBKey>::Read(const Message* m,
|
|
|
| void ParamTraits<IndexedDBKey>::Log(const param_type& p, std::string* l) {
|
| l->append("<IndexedDBKey>(");
|
| - LogParam(int(p.type()), l);
|
| + LogParam(static_cast<int>(p.type()), l);
|
| l->append(", ");
|
| l->append("[");
|
| std::vector<IndexedDBKey>::const_iterator it = p.array().begin();
|
| @@ -107,7 +107,7 @@ void ParamTraits<IndexedDBKey>::Log(const param_type& p, std::string* l) {
|
| }
|
|
|
| void ParamTraits<IndexedDBKeyPath>::Write(Message* m, const param_type& p) {
|
| - WriteParam(m, int(p.type()));
|
| + WriteParam(m, static_cast<int>(p.type()));
|
| switch (p.type()) {
|
| case WebIDBKeyPath::ArrayType:
|
| WriteParam(m, p.array());
|
| @@ -153,7 +153,7 @@ bool ParamTraits<IndexedDBKeyPath>::Read(const Message* m,
|
|
|
| void ParamTraits<IndexedDBKeyPath>::Log(const param_type& p, std::string* l) {
|
| l->append("<IndexedDBKeyPath>(");
|
| - LogParam(int(p.type()), l);
|
| + LogParam(static_cast<int>(p.type()), l);
|
| l->append(", ");
|
| LogParam(p.string(), l);
|
| l->append(", ");
|
|
|