Chromium Code Reviews| Index: net/disk_cache/simple/simple_entry_operation.cc |
| diff --git a/net/disk_cache/simple/simple_entry_operation.cc b/net/disk_cache/simple/simple_entry_operation.cc |
| index 81d5f7c888b1d020bfa23d601e89dae0e4aa8f56..97d1fa1ad89cc60ee4ad53f33b8ef198bb38a68f 100644 |
| --- a/net/disk_cache/simple/simple_entry_operation.cc |
| +++ b/net/disk_cache/simple/simple_entry_operation.cc |
| @@ -28,7 +28,7 @@ SimpleEntryOperation::SimpleEntryOperation(const SimpleEntryOperation& other) |
| SimpleEntryOperation::~SimpleEntryOperation() {} |
| -// Static. |
| +// static |
| SimpleEntryOperation SimpleEntryOperation::OpenOperation( |
| SimpleEntryImpl* entry, |
| bool have_index, |
| @@ -48,7 +48,7 @@ SimpleEntryOperation SimpleEntryOperation::OpenOperation( |
| false); |
| } |
| -// Static. |
| +// static |
| SimpleEntryOperation SimpleEntryOperation::CreateOperation( |
| SimpleEntryImpl* entry, |
| bool have_index, |
| @@ -68,7 +68,7 @@ SimpleEntryOperation SimpleEntryOperation::CreateOperation( |
| false); |
| } |
| -// Static. |
| +// static |
| SimpleEntryOperation SimpleEntryOperation::CloseOperation( |
| SimpleEntryImpl* entry) { |
| return SimpleEntryOperation(entry, |
| @@ -85,7 +85,7 @@ SimpleEntryOperation SimpleEntryOperation::CloseOperation( |
| false); |
| } |
| -// Static. |
| +// static |
| SimpleEntryOperation SimpleEntryOperation::ReadOperation( |
| SimpleEntryImpl* entry, |
| int index, |
| @@ -108,7 +108,7 @@ SimpleEntryOperation SimpleEntryOperation::ReadOperation( |
| alone_in_queue); |
| } |
| -// Static. |
| +// static |
| SimpleEntryOperation SimpleEntryOperation::WriteOperation( |
| SimpleEntryImpl* entry, |
| int index, |
| @@ -132,6 +132,23 @@ SimpleEntryOperation SimpleEntryOperation::WriteOperation( |
| false); |
| } |
|
gavinp
2013/08/26 20:36:50
// static
And you were so good everywhere else!
Philippe
2013/08/27 11:33:30
Ahaha :)
|
| +SimpleEntryOperation SimpleEntryOperation::DoomOperation( |
| + SimpleEntryImpl* entry, |
| + const CompletionCallback& callback) { |
| + return SimpleEntryOperation(entry, |
| + NULL, |
| + callback, |
| + NULL, |
| + 0, |
| + 0, |
| + TYPE_DOOM, |
| + false, |
|
gavinp
2013/08/26 20:36:50
All these booleans make me dizzy. Can you make a c
Philippe
2013/08/27 11:33:30
Yeah I was also pretty sad to have to add this cod
|
| + 0, |
| + false, |
| + false, |
| + false); |
| +} |
| + |
| bool SimpleEntryOperation::ConflictsWith( |
| const SimpleEntryOperation& other_op) const { |
| if (type_ != TYPE_READ && type_ != TYPE_WRITE) |